[Workaround.org] Postfix+Dovecot works with mysql, but with postgresql and the same configuration only virtual domain can receive email email to the real domain fly back to sender
Torsten Schulz
torstenschulz2 at gmx.net
Sat Mar 6 18:19:25 CET 2010
Hello there, i have a problem with my postfix and dovecot configuration.
I've gone thru the excelent tutorial from Christoph Haas at workaround.org/ispmail/lennv.
All works well.
So i want to do the same with Postgresql an kick of Mysql.
After a little trying it seams to work.
Now i must see i have an owesome behaving on my system.
I can send and receive email from a virtual domain.
If i try to make a virtual domain that exactly names like the real domain that my server works with i only can send email.
If people anser to this email they become an bouncing email with the error message that the user is unknown. And this only at this domain.
I have tryed to make a real user on the system so that he definitly excist. And then the email dosn't bounce back.
But for my emailclient the email isn't rechable. So i go on the server and lokaly starting mutt , hey the email there in the users dir.
Normaly it have to be like on other domains in a directory like /var/somethingmaildir.
By the way ,the mappings works perfect.
I attache the configuration an i hope some one can help me with this.
vserver1805:~# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_size_limit = 0
mydestination = vserver1805, toschulz.de, localhost.de, localhost
myhostname = toschulz.de
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem
smtpd_tls_key_file = /etc/ssl/private/postfix.pem
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_alias_maps = pgsql:/etc/postfix/pgsql-virtual-alias-maps.cf,pgsql:/etc/postfix/pgsql-email2email.cf
virtual_mailbox_domains = pgsql:/etc/postfix/pgsql-virtual-mailbox-domains.cf
virtual_mailbox_maps = pgsql:/etc/postfix/pgsql-virtual-mailbox-maps.cf
virtual_transport = dovecot
More information about the Workaround-chitchat
mailing list