.forward and aliases do not work

Hi,

I am new in Network Admin. I have just configured a XServe as a gateway between my local network and the Internet. The Internet connection works well, as the Mail Service.
My problem is the following, when I create a user account with an imap mailbox and I put in a .forward another address, the user mailbox receives mails while the forwarded address doesn't.
I have tried by creating a forwarded address directly in Server Admin or by filling /etc/aliases and /etc/postfix/aliases, then postalias /etc/(postfix/)aliases and newaliases. The problem is always the same.

Some idea ?

Thank you very much,
joe

MacPro Quad-Xeon 2,6GHz, Mac OS X (10.5.1)

Posted on Dec 13, 2007 12:34 PM

Reply
26 replies

Dec 18, 2007 8:54 AM in response to pterobyte

I depend of genopole.fr (it is my Institution, like a University if you prefer, we are a lab) where there are DNS servers and Internet router.
At the beginning, I had not enabled virtual domains and I had an error at each mail sent to epigenomique.genopole.fr -> "relay access denied". Since I have enabled virtual domains with epigenomique.genopole.fr, it has worked.

joe

Dec 18, 2007 9:09 AM in response to pterobyte

Ok,

it seems to work because mails come in and out. BUT, I have tried this command sendmail -bv <username> (the username that I have tried to configured a forwarding) and this that I obtain (it is forwarded while I deleted all forms of forwarding config, I don't understand where it comes from) :

This is the mail system at host ns.epigenomique.genopole.fr.

+<username@gmail.com> (expanded from <username>): delivery via local:+
+forwards to username@gmail.com+
+Reporting-MTA: dns; ns.epigenomique.genopole.fr+
+X-Postfix-Queue-ID: B6C5CE3CEC+
+X-Postfix-Sender: rfc822; root@ns.epigenomique.genopole.fr+
+Arrival-Date: Tue, 18 Dec 2007 18:00:54 +0100 (CET)+

+Final-Recipient: rfc822; username@gmail.com+
+Original-Recipient: rfc822; username+
+Action: deliverable+
+Status: 2.0.0+
+Diagnostic-Code: X-Postfix; delivery via local: forwards to+
joan.herisson@gmail.com
+Received: by ns.epigenomique.genopole.fr (Postfix, from userid 0)+
+ id B6C5CE3CEC; Tue, 18 Dec 2007 18:00:54 +0100 (CET)+
+From: root@ns.epigenomique.genopole.fr+
+Subject: probe+
+To: username@ns.epigenomique.genopole.fr+
+Message-Id: <20071218170054.B6C5CE3CEC@ns.epigenomique.genopole.fr>+
+Date: Tue, 18 Dec 2007 18:00:54 +0100 (CET)+



Thanks a lot,
joe

Dec 19, 2007 3:36 AM in response to joe-farka

Glad you got it sorted.

A virtual mail domain and a sub-domain are 2 different and unrelated things. What counts is which domain or subdomain your server is catering to. In your case you handle only one domain/subdomain and as such it is a local domain. The fact that you need to add it to local host aliases as well, is because of a "deficiency" of Server Admin.

Salut,
Alex

Feb 6, 2008 4:56 PM in response to joe-farka

Here's what I did to "fix" the 550 error and forwarding issue.

change the following line in /etc/postfix/main.cf from

mydestination = $myhostname,localhost.$mydomain,localhost

to

mydestination = $myhostname,localhost.$mydomain,localhost,$virtual mailboxdomains

This gives an error in mail.log but the sender doesn't get a 550 error and the mail is forwarded. Don't forget to sudo postfix reload

BTW, this is having the virtual domains set up in Server Admin.

Message was edited by: Andy Fragen

Feb 7, 2008 8:28 AM in response to pterobyte

@pterobyte

I know it's a kludge. Here's what I've got. Several users defined in WGM with mail set to forward. Under 10.5 it seemed to work where mail would get forwarded if sent to the virtual email address and no new mailbox was created. It seems under 10.5.1 a new mailbox is created mail is forwarded but the sender is sent a message with a 550 error saying mailbox not defined or no permissions etc.

So my question is, without having to resort to redefining aliases according to your absolutely foolproof directions but staying within Server Admin, how to I accomplish this? Do I just add 'vdomain1.com' and 'vdomain2.com' each on its own line to the end of /etc/postfix/virtual? Or do I hope that Apple has fixed this with the 10.5.2 release that hopefully will appear soon?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

.forward and aliases do not work

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.