Hello all,
I am using postfix with mysql for virtual_mailbox_maps on a system.
Everything seems to be working fine except for the fact that everynow
and then I am getting messages like the following:
May 20 14:56:18 <host> postfix/pipe[5168]: AA908518321:
to=<<user>@<domain2>>, orig_to=<<user>@<domain1>>, relay=maildrop,
delay=1.2, delays=1.2/0.01/0/0.04, dsn=5.1.1, status=bounced (user
unknown. Command output: Invalid user specified. )
I am trying to forward mail from <domain1> to <domain2>, which for the
most part seems to work. But then every now and then I get the above
message. I have read the documentation here :
http://www.postfix.org/ADDRESS_REWRITING_README.html, but think I must
be missing something. If anyone could provide any insite it would be
really appreciated.
Here is my myrecipientmap.cf:
@dajainc.com @dajainternational.com
Here is my main.cf config:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = dajainternational.com
mydomain = $myhostname
myorigin = $mydomain
inet_interfaces = $myhostname, localhost
mydestination = dajainternational.com, $transport_maps
local_recipient_maps = $alias_maps $virtual_mailbox_maps
unix:passwd.byname
unknown_local_recipient_reject_code = 550
alias_database = hash:/etc/aliases
home_mailbox = Maildir/
debug_peer_level = 2
debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.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.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
smtpd_sasl_auth_enable = yes
smtpd_sasl_path = smtpd
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks, reject_unauth_destination
smtpd_tls_cert_file = /usr/local/ssl/dajainternational.com.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_CAfile = /usr/local/ssl/PositiveSSL-bundle.crt
smtpd_use_tls = yes
smtpd_tls_security_level = may
smtpd_tls_loglevel = 0
virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated, check_recipient_access mysql:/etc/postfix/
mysql-recipient.cf, reject_unauth_destination, permit
smtpd_sender_restrictions = check_sender_access mysql:/etc/postfix/
mysql-sender.cf
smtpd_client_restrictions = check_client_access mysql:/etc/postfix/
mysql-client.cf
alias_maps = mysql:/etc/postfix/mysql-aliases.cf
relocated_maps = mysql:/etc/postfix/mysql-relocated.cf
transport_maps = mysql:/etc/postfix/mysql-transport.cf
virtual_maps = mysql:/etc/postfix/mysql-virtual.cf
virtual_mailbox_base = /home/vmail
virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
virtual_uid_maps = mysql:/etc/postfix/mysql-virtual-uid.cf
virtual_gid_maps = mysql:/etc/postfix/mysql-virtual-gid.cf
canonical_maps = hash:/etc/postfix/myrecipientmap.cf