My master.cf:
#
# Postfix master process configuration file. For details on the format
# of the file, see the Postfix master(5) manual page.
#
# ==========================================================================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ==========================================================================
smtp inet n - n - - smtpd
submission inet n - n - - smtpd
-o smtpd_etrn_restrictions=reject -o
smtpd_client_restrictions=permit_sasl_authenticated,reject
#smtps inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes
#submission inet n - n - - smtpd
# -o smtpd_etrn_restrictions=reject
# -o smtpd_enforce_tls=yes -o smtpd_sasl_auth_enable=yes
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
#
# ====================================================================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ====================================================================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/cyrus/bin/deliver -e -m ${extension} ${user}
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/cyrus/bin/deliver -e -r ${sender} -m ${extension} ${user}
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
retry unix - - n - - error
proxywrite unix - - n - 1 proxymap
127.0.0.1:10023 inet n n n - 0 spawn
user=amavisn argv=/opt/youngguns/bin/tumgreyspf
amavisfeed unix - - n - 1 lmtp
-o lmtp_data_done_timeout=1200
-o lmtp_send_xforward_command=yes
-o disable_dns_lookups=yes
-o max_use=20
127.0.0.1:10025 inet n - n - - smtpd
-o content_filter=
-o
receive_override_options=no_unknown_recipient_checks,no_header_body_checks,no_milters
-o smtpd_delay_reject=no
-o smtpd_client_restrictions=permit_mynetworks,reject
-o smtpd_helo_restrictions=
-o smtpd_sender_restrictions=
-o smtpd_recipient_restrictions=permit_mynetworks,reject
-o smtpd_data_restrictions=reject_unauth_pipelining
-o smtpd_end_of_data_restrictions=
-o smtpd_restriction_classes=
-o mynetworks=127.0.0.0/8
-o smtpd_error_sleep_time=0
-o smtpd_soft_error_limit=1001
-o smtpd_hard_error_limit=1000
-o smtpd_client_connection_count_limit=0
-o smtpd_client_connection_rate_limit=0
-o local_header_rewrite_clients=
On Wed, May 19, 2010 at 1:09 PM, Martijn de Munnik
<[email protected]> wrote:
> # /opt/csw/sbin/postmap -q [email protected]
> hash:/opt/csw/etc/postfix/maps/virtual
> martijn-youngguns.nl
>
> so that seems to work?
>
> On Wed, May 19, 2010 at 12:48 PM, Martijn de Munnik
> <[email protected]> wrote:
>> Hi,
>>
>> Since this morning I get these error messages in maillog. This happens
>> for all our users:
>>
>> May 19 12:43:08 stevie.youngguns.nl postfix/error[23550]: [ID 197553
>> mail.info] EFEAC1C176: to=<[email protected]>, relay=none,
>> delay=5511, delays=5509/1.6/0/0.04, dsn=4.0.0, status=SOFTBOUNCE (User
>> unknown in virtual alias table)
>>
>> This user is in the virtual alias table:
>>
>> # grep [email protected] /opt/csw/etc/postfix/maps/virtual
>> [email protected] martijn-youngguns.nl
>> [email protected] [email protected]
>>
>> We let virtualmin handle the creation of users and aliases. I've
>> removed a faulty alias in the virtual file and recreated the .db file
>> with postmap. Postmap doesn't complain about errors but I keep getting
>> the 'User unknown' errors in the logs.
>>
>> # /opt/csw/sbin/postconf -n
>> address_verify_map = btree:${data_directory}/verify
>> alias_maps =
>> hash:/opt/csw/etc/postfix/maps/aliases,hash:/opt/youngguns/mailman/data/aliases
>> body_checks = regexp:/opt/csw/etc/postfix/maps/body_checks
>> broken_sasl_auth_clients = yes
>> command_directory = /opt/csw/sbin
>> config_directory = /etc/postfix
>> daemon_directory = /opt/csw/libexec/postfix
>> data_directory = /opt/csw/var/lib/postfix
>> default_database_type = hash
>> delay_warning_time = 4h
>> disable_vrfy_command = yes
>> header_checks = regexp:/opt/csw/etc/postfix/maps/header_checks
>> home_mailbox = Maildir/
>> html_directory = /opt/csw/share/doc/postfix/html
>> inet_interfaces = all
>> mailbox_command = /opt/csw/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
>> mailbox_size_limit = 0
>> mailq_path = /opt/csw/bin/mailq
>> manpage_directory = /opt/csw/share/man
>> maximal_backoff_time = 8000s
>> maximal_queue_lifetime = 7d
>> message_size_limit = 52428800
>> mime_header_checks = regexp:/opt/csw/etc/postfix/maps/mime_header_checks
>> minimal_backoff_time = 1000s
>> mydestination = $myhostname, localhost.$mydomain
>> myhostname = stevie.youngguns.nl
>> mynetworks_style = host
>> myorigin = $myhostname
>> newaliases_path = /opt/csw/bin/newaliases
>> readme_directory = /opt/csw/share/doc/postfix/README_FILES
>> receive_override_options = no_address_mappings
>> recipient_delimiter = +
>> relay_domains = slagenlandwonen.nl, wfcommunicatie.nl,
>> gooischebrink.com, interjute.nl, melamo.nl, fair-play.nl,
>> loopbaankamer.nl, ospl.nl, ospl.de, printcontrol.nl,
>> dankers-schilderwerken.nl, promonta.nl, interim-denbosch.nl,
>> vanherpt.biz, rodersana.nl
>> relayhost =
>> sample_directory = /opt/csw/share/doc/postfix/samples
>> sendmail_path = /opt/csw/sbin/sendmail
>> smtp_bind_address = 213.207.90.2
>> smtp_fallback_relay = mx2.youngguns.nl
>> smtp_helo_timeout = 60s
>> smtp_pix_workaround_delay_time = 10s
>> smtp_send_xforward_command = yes
>> smtp_skip_quit_response = yes
>> smtp_tls_loglevel = 1
>> smtp_tls_security_level = may
>> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
>> smtpd_banner = $myhostname ESMTP
>> smtpd_client_connection_count_limit = 10
>> smtpd_data_restrictions = reject_unauth_pipelining
>> smtpd_delay_reject = yes
>> smtpd_hard_error_limit = 12
>> smtpd_helo_required = yes
>> smtpd_recipient_limit = 1000
>> smtpd_recipient_restrictions = permit_mynetworks,
>> permit_sasl_authenticated, check_client_access
>> hash:/opt/csw/etc/postfix/maps/relay_access,
>> reject_non_fqdn_recipient, reject_non_fqdn_sender,
>> reject_unknown_sender_domain, reject_unauth_destination,
>> reject_non_fqdn_helo_hostname, reject_rbl_client virbl.dnsbl.bit.nl,
>> check_policy_service inet:127.0.0.1:12525, check_sender_mx_access
>> cidr:/opt/csw/etc/postfix/maps/bogon_networks, check_client_access
>> cidr:/opt/csw/etc/postfix/maps/drop, check_sender_mx_access
>> cidr:/opt/csw/etc/postfix/maps/drop, check_sender_ns_access
>> cidr:/opt/csw/etc/postfix/maps/drop, reject_unverified_recipient,
>> check_client_access cidr:/opt/csw/etc/postfix/maps/dnswl_header,
>> check_client_access cidr:/opt/csw/etc/postfix/maps/dnswl_permit,
>> check_policy_service inet:127.0.0.1:10023
>> smtpd_sasl_auth_enable = yes
>> smtpd_sasl_authenticated_header = yes
>> smtpd_sasl_local_domain = $myhostname
>> smtpd_sasl_path = private/auth
>> smtpd_sasl_security_options = noanonymous
>> smtpd_sasl_type = dovecot
>> smtpd_soft_error_limit = 3
>> smtpd_tls_cert_file = /home/yghosting/ssl/secure-youngguns-nl.pem
>> smtpd_tls_key_file = /home/yghosting/ssl/secure-youngguns-nl.key
>> smtpd_tls_loglevel = 1
>> smtpd_tls_security_level = may
>> smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
>> soft_bounce = yes
>> strict_rfc821_envelopes = yes
>> tls_random_source = dev:/dev/urandom
>> transport_maps = hash:/opt/csw/etc/postfix/maps/transport
>> unknown_address_reject_code = 550
>> unknown_hostname_reject_code = 550
>> unknown_local_recipient_reject_code = 550
>> unverified_recipient_reject_code = 550
>> virtual_alias_maps = hash:/opt/csw/etc/postfix/maps/virtual
>> # grep [email protected] /opt/csw/etc/postfix/maps/virtual
>> [email protected] martijn-youngguns.nl
>> [email protected] [email protected]
>> # /opt/csw/sbin/postconf -n
>> address_verify_map = btree:${data_directory}/verify
>> alias_maps =
>> hash:/opt/csw/etc/postfix/maps/aliases,hash:/opt/youngguns/mailman/data/aliases
>> body_checks = regexp:/opt/csw/etc/postfix/maps/body_checks
>> broken_sasl_auth_clients = yes
>> command_directory = /opt/csw/sbin
>> config_directory = /etc/postfix
>> daemon_directory = /opt/csw/libexec/postfix
>> data_directory = /opt/csw/var/lib/postfix
>> default_database_type = hash
>> delay_warning_time = 4h
>> disable_vrfy_command = yes
>> header_checks = regexp:/opt/csw/etc/postfix/maps/header_checks
>> home_mailbox = Maildir/
>> html_directory = /opt/csw/share/doc/postfix/html
>> inet_interfaces = all
>> mailbox_command = /opt/csw/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
>> mailbox_size_limit = 0
>> mailq_path = /opt/csw/bin/mailq
>> manpage_directory = /opt/csw/share/man
>> maximal_backoff_time = 8000s
>> maximal_queue_lifetime = 7d
>> message_size_limit = 52428800
>> mime_header_checks = regexp:/opt/csw/etc/postfix/maps/mime_header_checks
>> minimal_backoff_time = 1000s
>> mydestination = $myhostname, localhost.$mydomain
>> myhostname = stevie.youngguns.nl
>> mynetworks_style = host
>> myorigin = $myhostname
>> newaliases_path = /opt/csw/bin/newaliases
>> readme_directory = /opt/csw/share/doc/postfix/README_FILES
>> receive_override_options = no_address_mappings
>> recipient_delimiter = +
>> relay_domains = slagenlandwonen.nl, wfcommunicatie.nl,
>> gooischebrink.com, interjute.nl, melamo.nl, fair-play.nl,
>> loopbaankamer.nl, ospl.nl, ospl.de, printcontrol.nl,
>> dankers-schilderwerken.nl, promonta.nl, interim-denbosch.nl,
>> vanherpt.biz, rodersana.nl
>> relayhost =
>> sample_directory = /opt/csw/share/doc/postfix/samples
>> sendmail_path = /opt/csw/sbin/sendmail
>> smtp_bind_address = 213.207.90.2
>> smtp_fallback_relay = mx2.youngguns.nl
>> smtp_helo_timeout = 60s
>> smtp_pix_workaround_delay_time = 10s
>> smtp_send_xforward_command = yes
>> smtp_skip_quit_response = yes
>> smtp_tls_loglevel = 1
>> smtp_tls_security_level = may
>> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
>> smtpd_banner = $myhostname ESMTP
>> smtpd_client_connection_count_limit = 10
>> smtpd_data_restrictions = reject_unauth_pipelining
>> smtpd_delay_reject = yes
>> smtpd_hard_error_limit = 12
>> smtpd_helo_required = yes
>> smtpd_recipient_limit = 1000
>> smtpd_recipient_restrictions = permit_mynetworks,
>> permit_sasl_authenticated, check_client_access
>> hash:/opt/csw/etc/postfix/maps/relay_access,
>> reject_non_fqdn_recipient, reject_non_fqdn_sender,
>> reject_unknown_sender_domain, reject_unauth_destination,
>> reject_non_fqdn_helo_hostname, reject_rbl_client virbl.dnsbl.bit.nl,
>> check_policy_service inet:127.0.0.1:12525, check_sender_mx_access
>> cidr:/opt/csw/etc/postfix/maps/bogon_networks, check_client_access
>> cidr:/opt/csw/etc/postfix/maps/drop, check_sender_mx_access
>> cidr:/opt/csw/etc/postfix/maps/drop, check_sender_ns_access
>> cidr:/opt/csw/etc/postfix/maps/drop, reject_unverified_recipient,
>> check_client_access cidr:/opt/csw/etc/postfix/maps/dnswl_header,
>> check_client_access cidr:/opt/csw/etc/postfix/maps/dnswl_permit,
>> check_policy_service inet:127.0.0.1:10023
>> smtpd_sasl_auth_enable = yes
>> smtpd_sasl_authenticated_header = yes
>> smtpd_sasl_local_domain = $myhostname
>> smtpd_sasl_path = private/auth
>> smtpd_sasl_security_options = noanonymous
>> smtpd_sasl_type = dovecot
>> smtpd_soft_error_limit = 3
>> smtpd_tls_cert_file = /home/yghosting/ssl/secure-youngguns-nl.pem
>> smtpd_tls_key_file = /home/yghosting/ssl/secure-youngguns-nl.key
>> smtpd_tls_loglevel = 1
>> smtpd_tls_security_level = may
>> smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
>> soft_bounce = yes
>> strict_rfc821_envelopes = yes
>> tls_random_source = dev:/dev/urandom
>> transport_maps = hash:/opt/csw/etc/postfix/maps/transport
>> unknown_address_reject_code = 550
>> unknown_hostname_reject_code = 550
>> unknown_local_recipient_reject_code = 550
>> unverified_recipient_reject_code = 550
>> virtual_alias_maps = hash:/opt/csw/etc/postfix/maps/virtual
>>
>