PDA

View Full Version : Mail forwarding doesn't work (10.6.3 Server)




shesmu
May 26, 2010, 04:07 PM
Hello!

I can't get mail forwarding to work on 10.6.3 Server.
This is my first server setup experience, so please tell me if my post lacks some info.
I've set up DNS, Open Directory master etc. and everything seems to work properly.
Using Workgroup Manager, I've set up several user accounts for mail, and they seem to work as well, at least messages sent to and from these accounts is delivered without problems.

Then I wanted to set up a postmaster account. All mail sent to it should be forwarded to a 'third-party' email. I've created 'postmaster' user in Workgroup Manager, selected 'Forward' in Mail tab for this user, and entered email address to forward to. Here's what I see in /var/log/mail after sending a message to postmaster@example.com from my Gmail account:

May 26 23:09:13 example postfix/smtpd7351: connect from mail-wy0-f171.google.com http://74.125.82.171
May 26 23:09:14 example postfix/smtpd7351: 3ACB55172E: client=mail-wy0-f171.google.com http://74.125.82.171
May 26 23:09:14 example postfix/cleanup7358: 3ACB55172E: message-id=<AANLkTimc4evHF8t2gi_VoxSEpKHixz42R3Nj7DHgFl9d@mail.gmail.com>
May 26 23:09:14 example postfix/qmgr5213: 3ACB55172E: from=<example@gmail.com>, size=1763, nrcpt=1 (queue active)
May 26 23:09:14 example postfix/local7359: odgetpwnam_ext: no attribute dsAttrTypeStandard:MailAttribute in record for user root
May 26 23:09:14 example postfix/local7359: 3ACB55172E: to=<root@example.com>, orig_to=<postmaster@example.com>, relay=local, delay=0.24, delays=0.23/0.01/0/0, dsn=2.0.0, status=sent (delivered to file: /dev/null)
May 26 23:09:14 example postfix/qmgr5213: 3ACB55172E: removed
May 26 23:09:44 example postfix/smtpd7351: disconnect from mail-wy0-f171.google.com http://74.125.82.171

As far as I can understand, the mail is
1) delivered to root instead of postmaster;
2) delivered to /dev/null instead of being forwarded.
Why?

I've restarted all services and even rebooted the server without success.

If there is any additional info regarding server setup I should provide, please let me know.

Thanks in advance!

Mac Mini Server 2.53GHz, Mac OS X Server 10.6.3



chenting
Jun 17, 2010, 10:22 AM
I would just suggest you avoid use the postmaster account.

Postmaster is known to be reserved by system and, possibly it is reserved for root in fact. ( can not be 100% sure).

But just create a email account with any non-reserved name, try it and wish you good luck.

:D

lightage
Jun 21, 2010, 03:32 PM
You need to add the line to your aliases file:

postmaster:"Externalpostmaster@gmail.com"

Then run the newaliases command in terminal

shesmu
Jun 21, 2010, 09:09 PM
Thanks guys.
I've already got a reply at Apple's forum, here's the link:
http://discussions.apple.com/thread.jspa?threadID=2441827