2 msgMASQUERADING FROM BUT NOT TO
3 msgProbably not a Postfix problem...?
3 msgQuick question with user/virtual aliases.
4 msgSending healty batch emails
5 msguse of relayhost, relaydomain?
6 msgnaming the mail server
1 msgRe: statistics by client ip address - SOLVED
3 msgquestion marks on permissions/owner
2 msgConfiguring Postfix to Receive Mail from Outloo...
3 msgtcp_table and propose for new lookup table 'pip...
12 msgAbout date spoofing
3 msgOverriding DNS lookups for a specific domain
2 msgredirecting a single email address/alias (not a...
1 msgstatistics by client ip address
2 msgsender+ip restrictions
14 msgpostfix-2.5 RPMs available
1 msgSetting up Postfix on Solaris 10

Yet another virtual domain problem - do not lis...
\ C. Bensend (13 Mar 2008)
. \ (Wietse Venema) (13 Mar 2008)
. . \ C. Bensend (13 Mar 2008)
. \ Bastian Blank (13 Mar 2008)
. . \ C. Bensend (13 Mar 2008)
. . . \ (Wietse Venema) (13 Mar 2008)
. . . . \ C. Bensend (13 Mar 2008)
. . . \ Bastian Blank (13 Mar 2008)

2 msggetting a user permissions error
2 msg551 mail refused
Subject:Yet another virtual domain problem - do not list domain in BOTH mydestination and virtual_alias_domains
Group:Postfix-users
From:C. Bensend
Date:13 Mar 2008


 

Hey folks,

I am very new to Postfix, but I've read documentation until I'm
blue in the face and I seem to not be understanding it. I'd
appreciate it if someone could give me a hand.

This system is installed on CentOS 5.1 x86_64, via RPM. The
Postfix RPM installed is postfix-2.3.3-2. It is intended to be
a mailserver for our company, as final destination for a handful
of domains. We need to be able to create new addresses on various
domains that point to specific UNIX users (ie, info
will go somewhere different than info), so I read the
VIRTUAL_README and thought that virtual alias domains would be the
way to go.

[root@mx mail]# postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = no
inet_interfaces = all
local_recipient_maps = unix:passwd.byname $alias_maps
mail_owner = postfix
mailbox_command = /usr/local/bin/maildrop
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mydomain = example.com
myhostname = mx.example.com
mynetworks = 127.0.0.0/8, 192.168.0.0/24
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
non_smtpd_milters = unix:clamav/clamav-milter
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_milters = unix:clamav/clamav-milter
unknown_local_recipient_reject_code = 550
virtual_alias_domains = example.com
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_transport = maildrop

This, of course, gives the oft-seen warning in /var/log/maillog:

postfix/trivial-rewrite[30852]: warning: do not list domain
example.com in BOTH mydestination and virtual_alias_domains

But, it works fine, mail is delivered to maildrop as the UNIX
user it's delivering to, SpamAssassin is invoked, yay. However,
obviously Postfix is complaining because there's a problem, so I
go re-read the VIRTUAL_README again. However, when I do its bidding
and remove example.com from mydestination, it then fails deliveries:

postfix/error[22560]: 8DB2C1953B8: to=<cbensend>,
orig_to=<chris.bensend>, relay=none, delay=0.15,
delays=0.07/0.01/0/0.08, dsn=5.0.0, status=bounced (User unknown
in virtual alias table) Mar 12 15:35:36 mx postfix/cleanup[22559]:
B1CAA1953BC: message-id=<20080312203536.B1CAA1953BC>

Hey, waitaminute. Why is it being rewritten to
cbensend? My /etc/postfix/virtual doesn't have anything
weird, it was almost word for word from the VIRTUAL_README:

chris.bensend cbensend

I did 'postmap /etc/postfix/virtual' and reloaded Postfix, FYI.
I read ADDRESS_REWRITING_README and didn't see anything that I felt
applied, but I certainly could have missed something.

I've Googled and searched the list archives, and I see a lot
of posts about the "BOTH mydestination and virtual_alias_domains"
errors, but from everything I'm understanding from the readme
files, I think I'm doing it correctly.

Can someone smack me with a cluebat and help me out?

Thanks!

Benny


--
"Hey, get in here, Boozy! You're late for your drunkening!"
-- Moe, "The Simpsons"





© 2004-2008 readlist.com