4 msgnested_header_checks
10 msgHotmail Problem
4 msgfeedback request: scheduled delivery of messages
1 msgpkgsrc 'postfix-stress' option (Re: PATCH versi...
10 msgHow to enforce users send email with the real f...
15 msgCatchall setup problem with Virtual domains and...
2 msgquestion
5 msgrestrictions

problems with virtual alias table
\ Albert Dengg (14 Jan 2008)
. \ Reinaldo Carvalho (14 Jan 2008)
. . \ Albert Dengg (14 Jan 2008)
. \ mouss (14 Jan 2008)
. . \ Albert Dengg (14 Jan 2008)

2 msgsome mails bounce with 'Name or service not known'
2 msgExternal recipients within same domain
2 msg~RE: stopping Spam with postfix
9 msgstopping Spam with postfix
17 msgMessages stuck in active queue
4 msgvirtual: Command as adress list
1 msgvariable quota policy ideas
2 msgHow to unistall postfix from compiling source(m...
1 msgBackup mx with local delivery and forwarding fo...
4 msgReceiving Mail with from mydomain.com from unkn...
10 msgWhich is the best soft for mailscanning?
Subject:problems with virtual alias table
Group:Postfix-users
From:Albert Dengg
Date:14 Jan 2008


 

hi

i'm currently in the process of setting up a mailserver with multiple
virtual domains and there are currently 2 problems:
1) if i try to send a mail to any one of the virtual alias users i get an
"User unknown in virtual alias table" error
2) the mail is bounced instead of being rejected at smtp time

the system is a debian etch server with postfix debian package version
2.3.8-2+b1.

as for the first problem:
the strange thing is that i can look up the user in /etc/postfix/virtual
with "postmap -s" and "postmap -q user1" without a
problem and get back the correct unix account, so in my opinion it
should work(?)...

for the second problem:
as you can see in the postconf -n output below, local_recipient_maps is
set to what for me looks like to be correct...

postconf -n output (the domains are real ones actually, inet_interfaces
= localhost is for testing because of the bounce problem):
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
debug_peer_list = 127.0.0.1
home_mailbox = Maildir/
inet_interfaces = localhost
local_recipient_maps = $alias_maps, $virtual_maps, unix:passwd.byname
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = localhost, localhost.localdomain, localhost
myhostname = virtual1.tld
mynetworks = 127.0.0.0/8
myorigin = /etc/mailname
recipient_delimiter = +
relayhost =
smtp_sasl_auth_enable = no
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_client_restrictions = reject_invalid_hostname
smtpd_recipient_restrictions = reject_unknown_recipient_domain,
permit_sasl_authenticated,
reject_unauth_destination
smtpd_reject_unlisted_recipient = yes
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = reject_unknown_address
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
virtual_alias_domains = virtual1.tld virtual2.tld virtual3.tld
virtual_alias_maps = hash:/etc/postfix/virtual

/etc/postfix/virtual:
postmaster postmaster
postmaster postmaster
postmaster postmaster

abuse abuse
abuse abuse
abuse abuse

alias1 alias1
alias1 alias1
alias1 alias1

alias2 alias2
alias2 alias2
alias2 alias2

user1 user1
user1 user1
user1 user1

user2 user2
user2 user2
user2 user2
user2alias1 user2
user2alias1 user2
user2alias1 user2

a logfile snippet from one of my trys is attached


most likely it's something trivial that i haven't thought about :)

thx for any advice

yours
albert



© 2004-2008 readlist.com