2009/7/15 Brian Evans - Postfix List <grkni...@scent-team.com>: > First, cleanup(8) is responsible for address lookup/rewriting from the > pickup queue. > Changing sendmail(1)'s parameters won't do anything. > > Second, we need some more concrete examples in order to help. > Logs, 'postconf -n' and other tips in > http://www.postfix.org/DEBUG_README.html#mail will help us help you. > (Replace your domain with example.(com|net|org) if you like)
Perhaps I need to explain the problem I'm having a bit better. I've included postconf -n from my backend mail server. As you can see it does not use virtual_alias_maps. This was done purposefully as the gateways do alias rewriting using virtual_alias_maps. Under normal circumstances this is perfect as the backend servers generally only receive mail. But I've got maildrop sending out vacation/out of office messages from the backend servers. This is fine as long as the recipient of the vacation/out of office message is not an alias on one of our local domains. The backend server will try to deliver locally as expected but obviously can't recognise the address since it is an alias. Below is a log of one of the problem emails: Jul 17 09:41:16 mink postfix/pickup[24014]: EC1F6294655: uid=0 from=<g...@mydomain.net> Jul 17 09:41:16 mink postfix/cleanup[21294]: EC1F6294655: message-id=<20090717084116.ec1f6294...@mink.mydomain.org> Jul 17 09:41:17 mink postfix/qmgr[10999]: EC1F6294655: from=<g...@mydomain.net>, size=338, nrcpt=1 (queue active) Jul 17 09:41:17 mink postfix/virtual[16922]: EC1F6294655: to=<g...@mydomain.net>, relay=virtual, delay=0.16, delays=0.1/0/0/0.06, dsn=5.1.1, status=bounced (unknown user: "g...@mydomain.net") Jul 17 09:41:17 mink postfix/cleanup[20951]: 1F030294660: message-id=<20090717084117.1f030294...@mink.mydomain.org> Jul 17 09:41:17 mink postfix/qmgr[10999]: 1F030294660: from=<>, size=2212, nrcpt=1 (queue active) Jul 17 09:41:17 mink postfix/bounce[16986]: EC1F6294655: sender non-delivery notification: 1F030294660 Jul 17 09:41:17 mink postfix/qmgr[10999]: EC1F6294655: removed Jul 17 09:41:17 mink postfix/virtual[16922]: 1F030294660: to=<g...@mydomain.net>, relay=virtual, delay=0.19, delays=0.13/0/0/0.06, dsn=5.1.1, status=bounced (unknown user: "g...@mydomain.net") Jul 17 09:41:17 mink postfix/qmgr[10999]: 1F030294660: removed Are there alterations I can make to my config that would allow maildrop using "/usr/sbin/sendmail" to correctly deliver mail to aliases while my main Postfix config does not include virtual_alias_maps? I've tried using the -oA option mentioned in the man page for with no success. Thanks Guy r...@mink:~# postconf -n 2bounce_notice_recipient = postmas...@mydomain.net address_verify_sender = postmas...@mydomain.net alias_database = hash:/etc/aliases anvil_rate_time_unit = 60s bounce_notice_recipient = postmas...@mydomain.net bounce_template_file = /etc/postfix/bounce.cf broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix cyrus_sasl_config_path = /etc/postfix/sasl/ daemon_directory = /usr/lib/postfix debug_peer_level = 1 default_destination_concurrency_limit = 30 delay_notice_recipient = postmas...@mydomain.net delay_warning_time = 0h disable_vrfy_command = yes error_notice_recipient = postmas...@mydomain.net fallback_transport = virtual header_checks = regexp:/etc/postfix/header_checks home_mailbox = Maildir/ html_directory = no inet_interfaces = 10.0.7.180, localhost local_destination_concurrency_limit = 2 local_recipient_maps = mail_name = Mail Service mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /usr/local/man message_size_limit = 31240000 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain mydomain = aluminati.net myhostname = mink.aluminati.org mynetworks = 127.0.0.0/8, 10.0.7.190, 10.0.7.188, 10.0.16.51, 10.0.16.52 myorigin = $mydomain newaliases_path = /usr/bin/newaliases notify_classes = software proxy_interfaces = 10.0.7.180, x.x.x.x proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps queue_directory = /var/spool/postfix readme_directory = no relay_domains = proxy:mysql:/etc/postfix/mysql_relay_domains_maps.cf sample_directory = /etc/postfix sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtp_connect_timeout = 30s smtp_data_done_timeout = 900s smtp_data_init_timeout = 180s smtp_data_xfer_timeout = 300s smtp_helo_timeout = 300s smtp_mail_timeout = 300s smtp_quit_timeout = 300s smtp_rcpt_timeout = 300s smtp_rset_timeout = 20s smtpd_banner = $myhostname ESMTP smtpd_client_connection_rate_limit = 500 smtpd_client_message_rate_limit = 500 smtpd_client_recipient_rate_limit = 0 smtpd_client_restrictions = permit_mynetworks ,reject_rbl_client sbl-xbl.spamhaus.org ,permit_sasl_authenticated ,reject smtpd_data_restrictions = reject_unauth_pipelining, permit smtpd_error_sleep_time = 1s smtpd_hard_error_limit = 20 smtpd_helo_required = yes smtpd_recipient_limit = 100 smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_invalid_hostname, reject_non_fqdn_sender, reject_unknown_sender_domain, reject_rhsbl_sender sbl-xbl.spamhaus.org smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_path = smtpd smtpd_sasl_security_options = noanonymous smtpd_soft_error_limit = 10 smtpd_tls_CAfile = /etc/ssl/certs/ca-bundle.crt smtpd_tls_cert_file = /etc/ssl/certs/imapd.pem smtpd_tls_key_file = /etc/ssl/private/imapd.pem smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes tls_random_source = dev:/dev/urandom transport_maps = proxy:mysql:/etc/postfix/mysql_transport_maps.cf unknown_local_recipient_reject_code = 550 virtual_gid_maps = static:1510 virtual_mailbox_base = / virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf virtual_mailbox_limit = 104857600 virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf virtual_transport = maildrop virtual_uid_maps = static:1510 -- Don't just do something...sit there!