| Linode Forum https://forum.linode.com/ |
|
| POSTFIX: Emails received locally, but aliases won't forward https://forum.linode.com/viewtopic.php?f=11&t=10300 |
Page 1 of 1 |
| Author: | starboy [ Wed Jul 31, 2013 4:52 pm ] |
| Post subject: | POSTFIX: Emails received locally, but aliases won't forward |
Currently I have installed, and configured postfix. If I send a email to let's say 'admin@XYZ.com' I receive the email(s) locally on the server. I would like to get these said emails to 'XYZ' to forward to my gmail account. Currently I have tried adding aliases through postfix to no avail. Current postfix/main.cf Code: # Debian specific: Specifying a file name will cause the first Current postfix/virtual Code: admin@XYZ.com gaccount@gmail.com Thanks for the help! |
|
| Author: | Piki [ Wed Jul 31, 2013 5:39 pm ] |
| Post subject: | Re: POSTFIX: Emails received locally, but aliases won't forw |
Put that config file in between [ code ] and [ /code ] (remove the spaces) to make it easier to read. It's hard to tell it apart from your actual post. If you're not using a database with Postfix, add your forwarding rules to /etc/aliases in the form of: Code: admin@xyc.com: gaccount@gmail.com the run the newaliases command. If it still doesn't work, restart Postfix. If you are using a database, you'll need to add your aliases to whichever database/table you're using for aliases, then restart Postfix (and maybe Dovecot if you're using it for authentication). |
|
| Author: | starboy [ Wed Jul 31, 2013 5:56 pm ] |
| Post subject: | Re: POSTFIX: Emails received locally, but aliases won't forw |
Thanks for the reply Piki, I just sent out a test email and didn't receive anything, but from the logs it looks like it went ok? Code: Jul 31 17:45:38 noble postfix/cleanup[4196]: 43493501B9: message-id=<CANHCpysOZOzcPG+Xe8NuNoKemgMtz3kzavo27Mi2Jt2ofnQVgw@mail.gmail.com> |
|
| Author: | Piki [ Wed Jul 31, 2013 6:20 pm ] |
| Post subject: | Re: POSTFIX: Emails received locally, but aliases won't forw |
Sometimes there's a delay, especially when sending to or receiving from the larger email providers. It shouldn't take more than a few minutes. If you don't receive it in your Gmail account soon, double check your log. Also double check your /etc/aliases file for typos. |
|
| Author: | Vance [ Thu Aug 01, 2013 9:18 am ] |
| Post subject: | Re: POSTFIX: Emails received locally, but aliases won't forw |
If you forward messages from a Gmail account back to Gmail, they won't show up in your Gmail inbox. Gmail recognizes that it originated from your account and won't show it in the inbox. Test by sending a message to admin@XYZ.com from another mail provider. Edit: as a general rule, you should also run newaliases after editing a Postfix alias file. This generates the db file (which is what Postfix actually uses) from the text file. |
|
| Author: | starboy [ Thu Aug 01, 2013 11:11 am ] |
| Post subject: | Re: POSTFIX: Emails received locally, but aliases won't forw |
So tried just tried using a different account, which again just let me get the email locally (still nothing forwarded). Checked the mail.log and this is what I'm getting: Code: Aug 1 10:46:34 noble postfix/cleanup[6478]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual |
|
| Author: | starboy [ Thu Aug 01, 2013 11:34 am ] |
| Post subject: | Re: POSTFIX: Emails received locally, but aliases won't forw |
Found the issue.. Sadly forgot to point my (mail) MX subdomain to my A record. |
|
| Author: | Vance [ Thu Aug 01, 2013 11:54 pm ] |
| Post subject: | Re: POSTFIX: Emails received locally, but aliases won't forw |
starboy wrote: Code: Aug 1 10:46:34 noble postfix/cleanup[6478]: warning: database /etc/postfix/virtual.db is older than source file /etc/postfix/virtual This indicates that your changes to /etc/postfix/virtual are not being used and you need to run postmap hash:/etc/postfix/virtual to generate an updated virtual.db file. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|