postfix-users May 2014 archive
Main Archive Page > Month Archives  > postfix-users archives
postfix-users: Separate domains, UNIX system accounts

Separate domains, UNIX system accounts

From: Marek Królikowski <admin_at_nospam>
Date: Mon May 12 2014 - 15:03:31 GMT
To: <postfix-users@postfix.org>

Hello Guys
I got strange problem with my postfix i try do separate domains but use UNIX
system accounts.
i use postfix doc (http://www.postfix.org/VIRTUAL_README.html) but don`t
know why it`s not working ( Debian 7 postfix 2.9.6):

This is my main.cf:
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_CAfile = /etc/postfix/ssl/taken.pem
smtpd_tls_cert_file = /etc/postfix/ssl/taken.pem
smtpd_tls_key_file = /etc/postfix/ssl/taken.pem
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = taken.pl
alias_maps = hash:/etc/postfix/aliases
myorigin = taken.pl
mydestination = localhost
virtual_alias_domains = taken.pl, wset.edu.pl
virtual_alias_maps = hash:/etc/postfix/virtual
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_client_restrictions =
smtpd_helo_restrictions = permit_mynetworks, reject_unauth_pipelining,
reject_invalid_helo_hostname, check_helo_access
hash:/etc/postfix/helo_checks
smtpd_recipient_restrictions = permit_mynetworks, check_sender_access
hash:/etc/postfix/sender_checks_my, reject_unauth_destination,
reject_unauth_pipelining, check_policy_service unix:private/policy
inet_protocols = ipv4
home_mailbox = Maildir/
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_auth_only = yes
smtpd_tls_mandatory_ciphers = high
smtpd_tls_ciphers = high
smtpd_tls_protocols = !SSLv2
smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
disable_vrfy_command = yes
message_size_limit = 102400000
smtpd_banner = $myhostname ESMTP

This is my /etc/postfix/virtual
admin@wset.edu.pl taken
admin@taken.pl taken

When i try send email to admin@wset.edu.pl i got info:
May 12 16:56:59 POCZTA postfix/error[6651]: 9CD862009CF:
to=<taken@taken.pl>, orig_to=<admin@wset.edu.pl>, relay=none, delay=6.7,
delays=6.7/0/0/0.05, dsn=5.0.0, status=bounced (User unknown in virtual
alias table)
The most funny when i put domains to mydestination too
mydestination = localhost, taken.pl, wset.edu.pl
i can send emails but get all the time warning:
May 12 14:12:55 POCZTA postfix/trivial-rewrite[4303]: warning: do not list
domain wset.edu.pl in BOTH mydestination and virtual_alias_domains

Anyone know how to do this without errors/warnings?
Thanks