PDA

View Full Version : Post fix virtual mail routing problem



ctoshack
16th March 2012, 04:35 PM
So I have postfix configured to receive email on my main mydomain.com. The email is sending and receiving just fine and the server is routing the mail to the correct mailbox for xuser@mydomain.com, however when sending mail to xuser@avirtualdomain.com created in ispconfig3 even though I receive no errors from the mail client and the server seems to except the mail it is not being routed to xuser@avirtualdomain.com's mailbox. In fact I can't find it anywhere. I have a feeling it is because of some of the items I removed from my main.cf to get it running from a tutorial I followed on this web forum, so here I will post my main.cf to see if anyone can help me figure out why this is happening.


queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
mail_owner = postfix
myhostname = mydomain.com
myorigin = $mydomain
#inet_interfaces = all
#inet_interfaces = $myhostname, localhost
inet_interfaces = all
inet_protocols = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
home_mailbox = Maildir/
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.8.7/samples
readme_directory = /usr/share/doc/postfix-2.8.7/README_FILES
#Added lines
#end added config
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
permit_sasl_authenticated,
check_relay_domains
relayhost = smtp.myisp.ca
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options =
unknown_local_recipient_reject_code = 550
content_filter = smtp-amavis:[127.0.0.1]:10024