From: =?ISO-8859-1?Q?Markus_Sch=F6nhaber?= on 1 Jul 2010 11:22 01.07.2010 16:49, David Touzeau: > On 01/07/2010 16:34, Markus Sch�nhaber wrote: Again: >> What are the contents of /etc/postfix/mydestination? Did you postmap it? And: >> BTW: what's the point in explicitly setting so many configuration >> variables to their default values? > Jul 1 16:48:08 server-mail postfix/smtpd[21427]: connect from > unknown[172.16.40.1] > Jul 1 16:48:30 server-mail cyrus/master[27446]: process 20566 exited, > status 0 > Jul 1 16:48:31 server-mail cyrus/master[27446]: process 21226 exited, > status 0 > Jul 1 16:49:01 server-mail postfix/smtpd[21427]: 47CF02BCC: > client=unknown[172.16.40.1] > Jul 1 16:49:11 server-mail postfix/cleanup[22048]: 47CF02BCC: > message-id=<20100701144901.47CF02BCC(a)server-mail.touzeau.biz.touzeau.biz.local.local> > Jul 1 16:49:11 server-mail postfix/qmgr[21345]: 47CF02BCC: > from=<user1(a)company.tld>, size=420, nrcpt=1 (queue active) > Jul 1 16:49:11 server-mail cyrus/master[22266]: about to exec > /usr/lib/cyrus/bin/lmtpd > Jul 1 16:49:11 server-mail cyrus/lmtpunix[22266]: executed > Jul 1 16:49:11 server-mail cyrus/lmtpunix[22266]: accepted connection > Jul 1 16:49:11 server-mail cyrus/lmtpunix[22266]: lmtp connection > preauth'd as postman > Jul 1 16:49:11 server-mail cyrus/lmtpunix[22266]: WARNING: sieve script > /var/spool/cyrus/sieve/a/all-users/defaultbc doesn't exist: No such file > or directory > Jul 1 16:49:11 server-mail cyrus/lmtpunix[22266]: Delivered: > <20100701144901.47CF02BCC(a)server-mail.touzeau.biz.touzeau.biz.local.local> > to mailbox: user.all-users > Jul 1 16:49:11 server-mail postfix/lmtp[22265]: 47CF02BCC: > to=<all-users(a)company.tld>, orig_to=<user1(a)company.tld>, > relay=server-mail.touzeau.biz.touzeau.biz.local.local[/var/spool/postfix/var/run/cyrus/socket/lmtp], > delay=41, delays=41/0.02/0.03/0.07, dsn=2.1.5, status=sent (250 2.1.5 Ok) > Jul 1 16:49:11 server-mail postfix/qmgr[21345]: 47CF02BCC: removed So you've sent a mail from user1(a)company.tld to user1(a)company.tld and it was delivered to all-users(a)company.tld. What are the contents of /etc/postfix/mydestination /etc/postfix/aliases /etc/postfix/virtual And: did you postmap (or newaliases when it comes to aliases) them? Oh, and if you didn't change this (taken from a previous post of yours): > content of /etc/postfix/aliases >> ------------------------------------ >> >> user1 user1(a)company.tld >> user2 user2(a)company.tld >> all-users all-users(a)company.tld That's not a valid aliases(5) file. But newaliases should have warned you about that fact. -- Regards mks -- Regards mks
From: David Touzeau on 1 Jul 2010 11:38 On 01/07/2010 17:22, Markus Sch�nhaber wrote: > 01.07.2010 16:49, David Touzeau: > >> On 01/07/2010 16:34, Markus Sch�nhaber wrote: > > Again: > >>> What are the contents of /etc/postfix/mydestination? Did you postmap it? > > And: > >>> BTW: what's the point in explicitly setting so many configuration >>> variables to their default values? > > >> Jul 1 16:48:08 server-mail postfix/smtpd[21427]: connect from >> unknown[172.16.40.1] >> Jul 1 16:48:30 server-mail cyrus/master[27446]: process 20566 exited, >> status 0 >> Jul 1 16:48:31 server-mail cyrus/master[27446]: process 21226 exited, >> status 0 >> Jul 1 16:49:01 server-mail postfix/smtpd[21427]: 47CF02BCC: >> client=unknown[172.16.40.1] >> Jul 1 16:49:11 server-mail postfix/cleanup[22048]: 47CF02BCC: >> message-id=<20100701144901.47CF02BCC(a)server-mail.touzeau.biz.touzeau.biz.local.local> >> Jul 1 16:49:11 server-mail postfix/qmgr[21345]: 47CF02BCC: >> from=<user1(a)company.tld>, size=420, nrcpt=1 (queue active) >> Jul 1 16:49:11 server-mail cyrus/master[22266]: about to exec >> /usr/lib/cyrus/bin/lmtpd >> Jul 1 16:49:11 server-mail cyrus/lmtpunix[22266]: executed >> Jul 1 16:49:11 server-mail cyrus/lmtpunix[22266]: accepted connection >> Jul 1 16:49:11 server-mail cyrus/lmtpunix[22266]: lmtp connection >> preauth'd as postman >> Jul 1 16:49:11 server-mail cyrus/lmtpunix[22266]: WARNING: sieve script >> /var/spool/cyrus/sieve/a/all-users/defaultbc doesn't exist: No such file >> or directory >> Jul 1 16:49:11 server-mail cyrus/lmtpunix[22266]: Delivered: >> <20100701144901.47CF02BCC(a)server-mail.touzeau.biz.touzeau.biz.local.local> >> to mailbox: user.all-users >> Jul 1 16:49:11 server-mail postfix/lmtp[22265]: 47CF02BCC: >> to=<all-users(a)company.tld>, orig_to=<user1(a)company.tld>, >> relay=server-mail.touzeau.biz.touzeau.biz.local.local[/var/spool/postfix/var/run/cyrus/socket/lmtp], >> delay=41, delays=41/0.02/0.03/0.07, dsn=2.1.5, status=sent (250 2.1.5 Ok) >> Jul 1 16:49:11 server-mail postfix/qmgr[21345]: 47CF02BCC: removed > > So you've sent a mail from user1(a)company.tld to user1(a)company.tld and it > was delivered to all-users(a)company.tld. > > What are the contents of > /etc/postfix/mydestination > /etc/postfix/aliases > /etc/postfix/virtual > > And: did you postmap (or newaliases when it comes to aliases) them? > > Oh, and if you didn't change this (taken from a previous post of yours): > >> content of /etc/postfix/aliases >>> ------------------------------------ >>> >>> user1 user1(a)company.tld >>> user2 user2(a)company.tld >>> all-users all-users(a)company.tld > > That's not a valid aliases(5) file. But newaliases should have warned > you about that fact. > your are right, aliases was not correctly formated, i have changed it but no changes postmap and newaliases was executed this is the content of /etc/postfix/mydestination ----------------------------------- company.tld OK /etc/postfix/aliases ----------------------------------- user1:user1(a)company.tld user2:user2(a)company.tld all-users:all-users(a)company.tld /etc/postfix/virtual ----------------------------------- @company.tld all-users(a)company.tld Jul 1 17:33:04 server-mail postfix/master[4937]: reload configuration /etc/postfix Jul 1 17:33:38 server-mail postfix/smtpd[27394]: connect from unknown[172.16.40.1] Jul 1 17:34:07 server-mail postfix/smtpd[27394]: 470342BCC: client=unknown[172.16.40.1] Jul 1 17:34:13 server-mail postfix/cleanup[28618]: 470342BCC: message-id=<20100701153407.470342BCC(a)server-mail.touzeau.biz.touzeau.biz.local.local> Jul 1 17:34:13 server-mail postfix/qmgr[26396]: 470342BCC: from=<toto(a)titi.com>, size=397, nrcpt=1 (queue active) Jul 1 17:34:13 server-mail cyrus/master[28623]: about to exec /usr/lib/cyrus/bin/lmtpd Jul 1 17:34:13 server-mail cyrus/lmtpunix[28623]: executed Jul 1 17:34:13 server-mail cyrus/lmtpunix[28623]: accepted connection Jul 1 17:34:13 server-mail cyrus/lmtpunix[28623]: lmtp connection preauth'd as postman Jul 1 17:34:13 server-mail cyrus/lmtpunix[28623]: WARNING: sieve script /var/spool/cyrus/sieve/a/all-users/defaultbc doesn't exist: No such file or directory Jul 1 17:34:13 server-mail cyrus/lmtpunix[28623]: Delivered: <20100701153407.470342BCC(a)server-mail.touzeau.biz.touzeau.biz.local.local> to mailbox: user.all-users Jul 1 17:34:13 server-mail postfix/lmtp[28622]: 470342BCC: to=<all-users(a)company.tld>, orig_to=<user1(a)company.tld>, relay=server-mail.touzeau.biz.touzeau.biz.local.local[/var/spool/postfix/var/run/cyrus/socket/lmtp], delay=21, delays=20/0.01/0.03/0.03, dsn=2.1.5, status=sent (250 2.1.5 Ok) Jul 1 17:34:13 server-mail postfix/qmgr[26396]: 470342BCC: removed catch-all still take the hand
From: =?ISO-8859-1?Q?Markus_Sch=F6nhaber?= on 1 Jul 2010 11:59 01.07.2010 17:38, David Touzeau: > this is the content of > > /etc/postfix/mydestination > ----------------------------------- > company.tld OK > > /etc/postfix/aliases > ----------------------------------- > user1:user1(a)company.tld > user2:user2(a)company.tld > all-users:all-users(a)company.tld > > /etc/postfix/virtual > ----------------------------------- > @company.tld all-users(a)company.tld > catch-all still take the hand And that's OK, since cleanup(8) has rewritten the recipient address to all-users(a)company.tld according to virtual before local(8) is handed the message and has the chance to do further rewriting according to aliases. http://www.postfix.org/ADDRESS_REWRITING_README.html#overview -- Regards mks
From: David Touzeau on 1 Jul 2010 12:13 On 01/07/2010 17:59, Markus Sch�nhaber wrote: > 01.07.2010 17:38, David Touzeau: > >> this is the content of >> >> /etc/postfix/mydestination >> ----------------------------------- >> company.tld OK >> >> /etc/postfix/aliases >> ----------------------------------- >> user1:user1(a)company.tld >> user2:user2(a)company.tld >> all-users:all-users(a)company.tld >> >> /etc/postfix/virtual >> ----------------------------------- >> @company.tld all-users(a)company.tld > >> catch-all still take the hand > > And that's OK, since cleanup(8) has rewritten the recipient address to > all-users(a)company.tld according to virtual before local(8) is handed the > message and has the chance to do further rewriting according to aliases. > http://www.postfix.org/ADDRESS_REWRITING_README.html#overview > THanks to explain to me the process but what is for you the best settings to fix the situation ?
From: =?ISO-8859-1?Q?Markus_Sch=F6nhaber?= on 1 Jul 2010 12:51 01.07.2010 18:13, David Touzeau: > THanks to explain to me the process but what is for you the best > settings to fix the situation ? Hm, I have already said what I consider the best fix for the situation: get rid of the catch-all and implement recipient validation. -- Regards mks
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 5 Prev: Sending mails using multiple IPs' Next: DNS load-balancing two equal nexthops is not fair |