Postfix/MySQL Forwarding

Hello, I just started setting up my website on a Linode recently. And, I am having some trouble with forwarding emails. I am following the guide located at: http://library.linode.com/email/postfix … 0-maverick">http://library.linode.com/email/postfix/dovecot-mysql-ubuntu-10.10-maverick (But I am on Ubuntu 11.04.)

So the basic path of the email should be: sender@example.com (Sender) -> forwarder@example.com (Forwarder) -> recipient@othersite.com (Recipient). But, it keeps returning a 550-No Such User Here

> Jun 16 22:40:03 server postfix/smtp[12729]: 3F9333FC4F: to=<recipient@othersite.com>, orig_to=<forwarder@example.com>, relay=othersite.com[xx.xx.xx.xx]:25, delay=0.8, delays=0.14/0.01/0.56/0.09, dsn=5.0.0, status=bounced (host othersite.com[xx.xx.xx.xx] said: 550-Verification failed for <sender@example.com> 550-No Such User Here" 550 Sender verify failed (in reply to RCPT TO command))

As you can see, it is checking for the account sender@example.com which does not exist on the other server.

My current configuration of main.cf is: Website names have been changed!
> # See /usr/share/postfix/main.cf.dist for a commented, more complete version

Debian specific: Specifying a file name will cause the first

line of that file to be used as the name. The Debian default

is /etc/mailname.

myorigin = /etc/mailname

smtpdbanner = $myhostname ESMTP $mailname (Ubuntu)

biff = no

appending .domain is the MUA's job.

appenddotmydomain = no

Uncomment the next line to generate "delayed mail" warnings

delaywarningtime = 4h

readme_directory = /usr/share/doc/postfix

TLS parameters

smtpdtlscert_file = /etc/postfix/smtpd.cert

smtpdtlskey_file = /etc/postfix/smtpd.key

smtpdusetls = yes

smtpdtlssessioncachedatabase = btree:${datadirectory}/smtpdscache

smtptlssessioncachedatabase = btree:${datadirectory}/smtpscache

See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for

information on enabling SSL in the smtp client.

myhostname = mail.example.com

mydomain = mail.example.com

alias_maps = hash:/etc/aliases

alias_database = hash:/etc/aliases

myorigin = /etc/mailname

mydestination = mail.example.com, localhost, localhost.localdomain

relayhost =

mynetworks = 127.0.0.0/8, 10.8.0.0/24

mailboxsizelimit = 0

recipient_delimiter = +

inet_interfaces = all

html_directory = /usr/share/doc/postfix/html

messagesizelimit = 30720000

virtualaliasdomains =

virtualaliasmaps = proxy:mysql:/etc/postfix/mysql-virtualforwardings.cf, mysql:/etc/postfix/mysql-virtualemail2email.cf

virtualmailboxdomains = proxy:mysql:/etc/postfix/mysql-virtual_domains.cf

virtualmailboxmaps = proxy:mysql:/etc/postfix/mysql-virtual_mailboxes.cf

virtualmailboxbase = /home/vmail

virtualuidmaps = static:5000

virtualgidmaps = static:5000

smtpdsaslauth_enable = yes

brokensaslauth_clients = yes

smtpdsaslauthenticated_header = yes

smtpdrecipientrestrictions = permitmynetworks, permitsaslauthenticated, rejectunauthdestination, checkrelay_domains

virtualcreatemaildirsize = yes

virtualmaildirextended = yes

proxyreadmaps = $localrecipientmaps $mydestination $virtualaliasmaps $virtualaliasdomains $virtualmailboxmaps $virtualmailboxdomains $relayrecipientmaps $relaydomains $canonicalmaps $sendercanonicalmaps $recipientcanonicalmaps $relocatedmaps $transportmaps $mynetworks $virtualmailboxlimit_maps

virtual_transport = dovecot

dovecotdestinationrecipient_limit = 1

Thank you for your help in advance! I am really stumped at this one. Could it be the other server's fault?

1 Reply

I have solved this issue. The issue was caused by me moving the website from my old host to my new host. But, apparently, my domain was still registered on my old host's cPanel, so it was being handled improperly.

Thanks. (Maybe this will help others in the future.)

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