Postfix/MySQL Forwarding
So the basic path of the email should be:
> Jun 16 22:40:03 server postfix/smtp[12729]: 3F9333FC4F: to=<
As you can see, it is checking for the account
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
Thanks. (Maybe this will help others in the future.)