Cannot receive and forward mail

My goal is not to be able to send mail, but rather to be able forward mail sent to a variety of email addresses associated with my (7) domains on my server over to my GMail account ( where they automatically filter into folders based on which address they were sent to ).

I tried to follow the following tutorial: https://library.linode.com/email/postfi … l-delivery">https://library.linode.com/email/postfix/gateway-ubuntu-10.10-maverick#sph_configure-mail-delivery … and it hasn't worked. Postfix seems to be installed fine, and I do have a virtual.db file … and yes I did /etc/init.d/postfix reload … but sending mail to myself always returns:

Delivery to the following recipient failed permanently:

Technical details of permanent failure:

Google tried to deliver your message, but it was rejected by the server for the recipient domain by mail..com. [].

The error that the other server returned was:

554 5.7.1 : Relay access denied

I'm not really sure what to do at this point and reading through the Postfix docs hasn't been helping too much. Can anyone assist? Currently all of my site emails are down and it's kind of making me nervous.

2 Replies

So that Postfix recognizes your domains as domains for which it should accept mail, try adding them to virtualaliasdomains.

Note that if you send mail from a Gmail account which is bounced back to that account, it likely won't appear in your inbox since Google seems to think having it in your sent folder is sufficient.

Thank you – virtualaliasdomains are exactly what I needed. All is functional now.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct