[MAIL] SMTP & Evolution (or Outlook)


I cannot send email via Evolution, or Outlook.
On the client, I set SMTP as mail.blabla.tom and then i does not work …

What can I test to verify if it works ?

Thanks in advance.

PS: I can send email via roudcube installed in www.blabla.tom/roundcube

We need to see log entries. I have no idea what’s going wrong when the problem report is just “is does not work”.


If you’re using username@domain.ltd format usernames, you also need to read this FAQ:


Specifically the bit about saslauthd. You may need to alter its configuration to accept usernames with @ in them.

Are you using sendmail or postfix as your MTA? We need a little help in order to help?

I use Postfix.
The firewall allows to connect on the port 25

I try a telnet on localhost on port 25 => it works
Myhost:~# telnet mail.myhost.fr 25
Trying XX.X.XX.XX…
Connected to myhost.
Escape character is ‘^]’.
220 XXXXXXX ESMTP Postfix (Debian/GNU)

when I try on an other network (at home)
telnet mail.myhost.fr 25

It finishes by a time out.

May I provide the main.cf ?

I get rid off this mails problems :slight_smile:

  • is there is a special support for bought virtualmin ? -
when I try on an other network (at home) telnet mail.myhost.fr 25 Trying

It finishes by a time out.

It looks like your ISP blocks port 25. You’ll probably need to enable an alternate port–smtpds is probably the best choice.

In master.cf, find these lines and uncomment them:

smtps inet n - n - - smtpd
-o smtpd_tls_wrappermode=yes
-o smtpd_sasl_auth_enable=yes
-o smtpd_client_restrictions=permit_sasl_authenticated,reject

And, in main.cf:

smtpd_tls_cert_file = /etc/postfix/virtualmin.pem
smtpd_use_tls = yes

Where you’ll need to replace virtualmin.pem with your SSL certificate–you can use a self-signed certificate, if you like, though most mail clients are very chatty about it if you do. (We actually use a cheap chained certificate from GoDaddy, and use the smtpd_tls_CAfile option to specify the CA.)

hi , I crashed everything :slight_smile:
start from a brand new install … it does not work !!! :frowning:

I desactivated the SMTP protection "offered" by the provider
SMTP should be like a fresh virtualmin install, I launched nmap a part of the result is :
25/tcp filtered smtp

What Why how ?

I modified "Restrictions on recipient addresses" to :
permit_sasl_authenticated permit_mynetworks reject_unauth_destination

I’m gonna losse my mind … mail is so … you know … so …

Joe, any ideas ? :wink:

SMTP should be like a fresh virtualmin install, I launched nmap a part of the result is : 25/tcp filtered smtp

Something is still blocking port 25. Again, I suspect your ISP.

But, you should stop iptables on your server just to be sure you don’t have some extra rules that our iptables configuration doesn’t know how to fix (some third party firewall scripts will overwrite our additions and generally make a nuisance of themselves…if you only use firewall tools that manage the standard iptables-save rules, then you should be fine).

true … You just rock !
There is a SMTP “protection” on my box… I had to desactivate it
There was a SMTP protection too in my provider’s dedicated server !

So, I can use the SMTP port as I want, I can send mails … Fun.

Now … I cannot recieve MAILS !!!

AAARRRGGGGGG, I’m green … I’m not D. Banner anymore … AARRRRGGG
The mails are blocked in the postfix mail queue !!
“Mail Queue 1 messages”

Please Jooooooeeeeeeeeee …

Now ... I cannot recieve MAILS !!!

So, it seems like you really want to get this fixed…And yet, you haven’t sent us any mail.log entries so we can help you. :wink:

so dessu ka ?

so the main point seems to be mail.log. Here’s a selection of what is important, I think :

Apr 25 09:48:35 sd-13014 postfix/smtpd[20011]: 582AD5440D2: client=yw-out-1718.google.com[]
Apr 25 09:48:35 sd-13014 postfix/cleanup[20059]: 582AD5440D2: message-id=<2efcd5f0804250048l5c1f76d5p5c5582d7b0d65db2@mail.gmail.com>
Apr 25 09:48:35 sd-13014 postfix/qmgr[2644]: 582AD5440D2: from=<marc.cuculiere@gmail.com>, size=5114, nrcpt=1 (queue active)
Apr 25 09:49:05 sd-13014 postfix/smtpd[20011]: disconnect from yw-out-1718.google.com[]
Apr 25 09:52:25 sd-13014 postfix/anvil[20013]: statistics: max connection rate 1/60s for (smtp: at Apr 25 09:46:28
Apr 25 09:52:25 sd-13014 postfix/anvil[20013]: statistics: max connection count 1 for (smtp: at Apr 25 09:46:28
Apr 25 09:52:25 sd-13014 postfix/anvil[20013]: statistics: max cache size 1 at Apr 25 09:46:28
Apr 25 09:53:32 sd-13014 postfix/postfix-script: warning: /var/spool/postfix/etc/hosts and /etc/hosts differ
Apr 25 09:58:27 sd-13014 postfix/postfix-script: warning: /var/spool/postfix/etc/hosts and /etc/hosts differ
Apr 25 10:04:38 sd-13014 postfix/local[20061]: 582AD5440D2: to=<hiscore@sd-13014.[REALDOMAIN.FR]>, orig_to=<hiscore@hiscore.fr>, relay=local, delay=963, delays=0.49/0.04/0/962, dsn=2.0.0, status=sent (delivered to
command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Apr 25 10:04:38 sd-13014 postfix/qmgr[2644]: 582AD5440D2: removed

Hehehe…We’re still not getting to the heart of the matter–we need to see the log entries related to the failure you want to fix, not just random log messages. The mail.log contains details about every message that comes in and out of your server, plus some other stuff related to the smtpd, pop/imap, and saslauthd servers.

e.g., try to connect with your mail client, and watch the log while you do so–that is the only way we can figure out why sending mail is failing.

We’re probably looking for saslauthd: messages, but they might also be postfix/smtpd: messages. We don’t know until we see them.

Continuing on a theme…

I have a couple people having this issue (where their ISP is blocking port 25)…

Any further enlightenment on the postfix setup for this? i.e. a more precise postfix config (ssl creation with a key, without a key, etc.)…

Between being a noob at postfix and VMPro I’d rather be careful than fast right now. But do have a need (and the Fedora/Centos docs arn’t helping… sigh.).




I disabled the anti-virus CLAMSCAN and it works now !
I just can’t believe it … I tried to make it work as daemon, but it didn’t changed anything but left my processor stressless :slight_smile:

Joe, thanks for the Help.

Conclusion :
My Postfix conf works since the begenning
Problems were :
[li]my triple play box blocked the port 25[/li]
[li]the clamscan blocked every mails[/li]
[li]clamscan used 99% of the proc[/li]
[li]clamscand blocked every mails[/li]

the clamscan blocked every mails

Hmmm…that’s a pretty dramatic failure mode for clamscan! We can probably help you resolve that problem (without losing AV scanning), if you want to post the relevant procmail log entries where you see mail being stopped by clamscan.