PDA

View Full Version : My postfix server is acting like a black hole.


NeoTech
10th August 2007, 21:53
I can se in the logs the mail gets delivered, the que removes it.. but it ends up.. Nowhere..

Here goes logs.

Aug 10 20:48:38 hosting postfix/smtpd[12852]: connect from proxy3.bredband.net[195.54.101.73]
Aug 10 20:48:38 hosting postfix/smtpd[12852]: 44D3190040F: client=proxy3.bredband.net[195.54.101.73]
Aug 10 20:48:38 hosting postfix/cleanup[12856]: 44D3190040F: message-id=<46BCB309.5060806@roughedge.se>
Aug 10 20:48:38 hosting postfix/qmgr[12775]: 44D3190040F: from=<andreas@roughedge.se>, size=733, nrcpt=1 (queue active)
Aug 10 20:48:38 hosting postfix/virtual[12857]: 44D3190040F: to=<contact@hosting.xhosting.se>, relay=virtual, delay=0.25, delays=0.23/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
Aug 10 20:48:38 hosting postfix/qmgr[12775]: 44D3190040F: removed
Aug 10 20:49:06 hosting postfix/smtpd[12852]: disconnect from proxy3.bredband.net[195.54.101.73]
clear
Aug 10 20:52:26 hosting postfix/anvil[12854]: statistics: max connection rate 1/60s for (smtp:195.54.101.73) at Aug 10 20:48:38
Aug 10 20:52:26 hosting postfix/anvil[12854]: statistics: max connection count 1 for (smtp:195.54.101.73) at Aug 10 20:48:38
Aug 10 20:52:26 hosting postfix/anvil[12854]: statistics: max cache size 1 at Aug 10 20:48:38

Anybody got any idea?? this is really annoying..

falko
11th August 2007, 13:06
Which distribution do you use? What's the output of netstat -tap?

NeoTech
11th August 2007, 13:11
After 5 more hours of debugging i found that the "root" directive in main.cf where pointing at /var/mail/virtual/ so then the postfix appended the whole directory structure AGAIN, cause i have setted up the DB så courier-imap and postfix uses the same db fields.. i found a compromise that worked..

But thanks for the answer anyway. =)

southernman
12th August 2007, 14:46
Would you mind posting the steps you took to resolve the issue on the board. You'll then live in yet another legacy and countless generations to come will be grateful for your contributions... ;)

Seriously though.. it would be nice if you wouldn't mind posting the steps you took to fix it.

Thanks,

~ Steve

NeoTech
12th August 2007, 19:21
Problem number one, is the fact that courier and postfix utilises the same database settings for Reading and writing mail.

The big difference between them is that one of them need a direct path to Maildir/ (Courier) and the other needs a relative path (Postfix)

in the postfix settings it asks for the virtual maildir root. in my case it was /var/mail/virtual/ and in the maildir direction for courier i had set /var/mail/virtual/<domain>/<maildir>/

Then i saw the mail ended up correctly in the server but couldnt find them. but notices after a while that a new directory structure ended up in /var/mail/virtual/ that was the whole virtual map structure all over again.

By locating the virtual map root directiv in the postfix main.cf and setting it to / (root) instead of /var/mail/virtual/ the postfix would write all the mail correctly to the courier reading map, relativly to the root.

Problem solved... Not really a blackhole issue just the damn fact that courier and postfix are intepreting the settings in the database differently.

// Andreas