virtual mailbox
Martin Sengstschmid
martin.sengstschmid at gmail.com
Fr Aug 5 20:03:09 CEST 2016
Hallo!
Nachdem mein alter Mailserver in die Jahre gekommen ist und tadellos (postfix - ldap - dovecot) funktioniert hat, möchte/muss ich ihn neu aufsetzen und scheitere derzeit an der virtuellen Mailbox, deren Adressen ich vorerst in einem file und noch nicht im LDAP speichern möchte.
echo foo | /usr/sbin/sendmail -f user info at example.com
wird nicht ausgeliefert und kommt an den lokalen useraccount user zurück.
postconf -n
alias_maps = hash:/usr/local/etc/postfix/aliases
command_directory = /usr/local/sbin
compatibility_level = 2
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
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
html_directory = no
inet_protocols = ipv4
mail_owner = postfix
mailbox_size_limit = 0
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
meta_directory = /usr/local/libexec/postfix
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = example.com
myhostname = ns3.example.com
mynetworks = xxx.xxx.115.164,xxx.xxx.115.165,xxx.xxx.115.166,xxx.xxx.115.167,xxx.xxx.115.168,xxx.xxx.115.169,xxx.xxx.115.170,xxx.xxx.115.171,xxx.xxx.115.172,xxx.xxx.115.173,xxx.xxx.115.174,127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = no
sample_directory = /usr/local/etc/postfix
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
shlib_directory = /usr/local/lib/postfix
smtp_bind_address = xxx.xxx.115.167
smtpd_recipient_restrictions = reject_non_fqdn_recipient reject_non_fqdn_sender reject_unknown_sender_domain reject_unknown_recipient_domain permit_mynetworks permit_sasl_authenticated reject_sender_login_mismatch reject_unauth_destination check_policy_service unix:private/spf-policy check_policy_service inet:127.0.0.1:10023 reject_multi_recipient_bounce reject_non_fqdn_helo_hostname reject_invalid_helo_hostname check_helo_access pcre:/usr/local/etc/postfix/helo_checks reject_rhsbl_sender dsn.rfc-ignorant.org permit
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual_alias_maps
virtual_gid_maps = static:2000
virtual_mailbox_base = /usr/home/virtual
virtual_mailbox_domains = $mydomain
virtual_mailbox_maps = hash:/usr/local/etc/postfix/virtual_mailbox_maps
virtual_uid_maps = static:2000
master.cf:
smtp inet n - n - 20 smtpd
-o smtpd_proxy_filter=localhost:10024
-o smtpd_client_connection_count_limit=10
pickup fifo n - n 60 1 pickup
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 300 1 qmgr
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
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
retry 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
spf-policy unix - n n - 0 spawn
user=nobody
argv=/usr/local/libexec/postfix-policyd-spf-perl
amavisfeed unix - - - - 2 smtp
-o smtp_data_done_timeout=1200
-o smtp_send_xforward_command=yes
-o smtp_tls_note_starttls_offer=no
127.0.0.1:10025 inet n - - - - smtpd
-o content_filter=
-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 receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_milters
-o local_header_rewrite_clients=
-o smtpd_milters=
-o local_recipient_maps=
-o relay_recipient_maps=
virtual_alias_maps
postmaster at example.com info at example.com
virtual_mailbox_maps
info at example.com example.com/info/
Herzlichen Dank für eine Hilfe!
Martin
Mehr Informationen über die Mailingliste Postfixbuch-users