View previous topic :: View next topic |
Author |
Message |
NoisyScott n00b
Joined: 22 Jul 2004 Posts: 2
|
Posted: Thu Jul 22, 2004 7:24 pm Post subject: Postfix sending all mail to single user |
|
|
I have a small server set up with two users and three domains. Everything works except that all mail sent to DOMAIN2 or DOMAIN3 gets rewritten and dumped into user1's mailbox. Here is the offending operation in action:
Code: | Jul 22 12:42:19 [postfix/smtpd] connect from mta.info.someserver.com[198.31.xx.xx]
Jul 22 12:42:19 [postfix/smtpd] 6D3A523CFE: client=mta.info.someserver.com[198.31.xx.xx]
Jul 22 12:42:19 [postfix/cleanup] 6D3A523CFE: message-id=<blah-8600-89656261-1@otherserver.com>
Jul 22 12:42:20 [postfix/qmgr] 6D3A523CFE: from=<blah@info.someserver.com>, size=23174, nrcpt=1 (queue active)
Jul 22 12:42:20 [postfix/local] 6D3A523CFE: to=<user1@DOMAIN1.com>, orig_to=<user2@DOMAIN3.com>, relay=local, delay=1, status=sent (maildir)
Jul 22 12:42:25 [postfix/smtpd] disconnect from mta.info.someserver.com[198.31.xx.xx] |
Here is /etc/postfix/virtual Code: | DOMAIN2.com virtual
DOMAIN3.com virtual
@DOMAIN3.com user2
@DOMAIN1.com user1
@DOMAIN2.com user1 |
Here is /etc/mail/aliases Code: | # Basic system aliases -- these MUST be present.
MAILER-DAEMON: postmaster
postmaster: root
# General redirections for pseudo accounts.
adm: root
bin: root
daemon: root
exim: root
lp: root
mail: root
named: root
nobody: root
postfix: root
# Well-known aliases -- these should be filled in!
# root:
# operator:
# Standard RFC2142 aliases
abuse: postmaster
ftp: root
hostmaster: root
news: usenet
noc: root
security: root
usenet: root
uucp: root
webmaster: root
www: webmaster
# trap decode to catch security attacks
# decode: /dev/null |
Finally here is postconf -n Code: | alias_database = hash:/etc/mail/aliases
alias_maps = hash:/etc/mail/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
default_destination_concurrency_limit = 10
home_mailbox = .maildir/
inet_interfaces = all
local_destination_concurrency_limit = 2
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, $mydomain
mynetworks = 192.168.1.0/28, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
readme_directory = /usr/share/doc/postfix-2.0.3
sample_directory = /etc/postfix/sample
sendmail_path = /usr/sbin/sendmail
setgid_group = postdrop
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/cacert.pem
smtpd_tls_cert_file = /etc/postfix/newcert.pem
smtpd_tls_key_file = /etc/postfix/newreq.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 450
|
I know that virtual routing works because I tested the system with a modified /etc/postfix/virtual with the result being that all mail was forwarded to user2, even after being rewritten to blah@DOMAIN1.com: Code: | DOMAIN3.com virtual
@DOMAIN3.com user2
@DOMAIN1.com user2
@DOMAIN2.com user2 |
This means that postfix is being instructed to rewrite to all incoming mail to blah@DOMAIN1 and deliver it to user1.
Somehow even after identifying the problem, I just cannot see where it is happening. Any help is appreciated.
Scott |
|
Back to top |
|
|
patrickbores Apprentice
Joined: 19 May 2003 Posts: 276 Location: Minneapolis, MN, USA
|
Posted: Fri Jul 23, 2004 4:17 pm Post subject: |
|
|
I'm not sure what the problem would be, but my configuration works fine and I use a slightly different format. It's worth a try. Here's how mine would look:
Code: |
DOMAIN1.com
@DOMAIN1.com user1
DOMAIN2.com
@DOMAIN2.com user1
DOMAIN3.com
@DOMAIN3.com user2
|
I put the domain entry before each actual mapping. Probably won't make a difference, but like I said, it can't hurt to try.
HTH,
Patrick _________________ P.S. - this is what part of the alphabet would look like if Q and R were eliminated. |
|
Back to top |
|
|
NoisyScott n00b
Joined: 22 Jul 2004 Posts: 2
|
Posted: Fri Jul 23, 2004 10:46 pm Post subject: |
|
|
Patrick,
Thanks for the effort, but it is still a no-go. I am, however, able to do a work around by commenting out the catch all on DOMAIN1. I would still like to have a catchall, but have to figure out how to get postfix to not rewrite all deliverable email address domains to the primary host domain (DOMAIN1). Code: | DOMAIN2.com virtual
DOMAIN3.com virtual
@DOMAIN3.com user2
#@DOMAIN1.com user1
@DOMAIN2.com user1
root@DOMAIN1.com user1
blah@DOMAIN1.com user1 |
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|