OVH Community, your new community space.

Dovecot issue.

17-09-2010, 09:54
I also had this problems with blacklisted IP's

Do you not also need to:

iptables -t nat -A POSTROUTING -o eth0 -j SNAT --to FA.IL.OV.ER

so that the outgoing packets also come from the failover IP?

16-09-2010, 22:00
ok changed dovecot log path and switched the postfix ip back to what it was.

In the logs im getting

dovecot: Sep 16 22:51:28 Info: imap-login: Login: user=, method=PLAIN, rip=, lip=, secured
dovecot: Sep 16 22:51:28 Info: IMAP(info.exteriorcoat): Connection closed
Thats all i get at all in the logs


also cheers very much.

16-09-2010, 21:15
Ah, I see. In that case it's likely to be stale IP/DNS data then. Just wish you had those logs to get this cleared up. For Dovecot, it'd be:

log_path = /var/log/dovecot.log
info_log_path = /var/log/dovecot.log
Postfix is controlled via the /etc/syslog.conf or /etc/rsyslog.d/postfix.conf (I use the latter, so if you need that config...)

16-09-2010, 20:59
hmm well there isnt in the log path in dovecot.conf

Also strange, iv just switched the inet_interfaces back to all and all the test emails iv sent have all come through....

So they seem to be getting to the server.

16-09-2010, 20:31
What's the actual log path for Dovecot and Postfix though (see /etc/dovecot/dovecot.conf, etc); You're definitely not blocking yourself from incoming mail servers and since you're not getting bounce-backs, I would also put my finger on dovecot but more so on Virtualmin itself (ie., using stale IP/dns data to fetch mail)...

16-09-2010, 20:06
Yes im getting results from running "tcpdump port 25"
21:00:26.291688 IP > ns**** S 49556605:49556605(0) win 5720 
21:00:26.291743 IP ns2**** > R 0:0(0) ack 49556606 win 0
And postfix is running

/etc/init.d/postfix status
master (pid 6979) is running...

16-09-2010, 20:01
No firewall accidentally blocking port 25? You could also use "tcpdump port 25" to do a quick check - simply run that and send an e-mail from gmail. You would get something like:

19:57:44.181293 IP > Flags [S], seq 3808846286, win 5720, options [mss 1430,sackOK,TS val 2265859454 ecr 0,nop,wscale 6], length 0
19:57:44.181377 IP > Flags [S.], seq 1668320764, ack 3808846287, win 5792, options [mss 1460,sackOK,TS val 2759343118 ecr 2265859454,nop,wscale 5], length 0
Of course, that's provided Postfix is running (check that with "netstat -tpln | grep smtp")

16-09-2010, 19:53
Sorry i didnt make it very clear.

if i send an email from my gmail account through the web interface, it doesnt get through to the server.
In /etc/postfix/ i have set the inet_interfaces to the failover IP.

So now i can send mail through the web virtualmin email interface to my gmail account but sending from my gmail (or any account)to an email account onthe server i get nothing in the inbox on the virtualmin interface.

There is nothing showing in /var/log/mail.log either

If you get what i mean, i may not be making myself clear
I put it down to dovecot not functioning correctly as it seems its recieving thats having issues, though its very possible im worng

16-09-2010, 19:49
Dovecot handles the POP3/IMAP bit - what the e-mail client uses to receive e-mail from the server. Is this where the issue is at?

Or did you mean receiving e-mail from another server to your via SMTP (Postfix)?

Nothing in /var/log/mail.log at all? One of the things I'd look at for example is the "inet_interfaces" variable in /etc/postfix/

16-09-2010, 19:39
Basicly, im hosting a site for a friend on one of my servers. Iv not really needed to send mail from this server so never had any issues. But as we was testing everything, it became apparant that mail from the IP of the server was blacklisted by hotmail.

I cant work out how to get the blacklisting removed by hotmail/microsoft so then i decided to use one of the failover IP's for postfix.

That worked perfectly, can now send to all domains without issue.


Now i cant recieve anything??
It doesnt work on any of the domains on the server. When sending mail i dont get any bouncebacks and there is nothing at all showing up in the logs of the server.

Anyone have any advice?

(I use virtualmin. i use dovecot and postfix)