REJECT mails to a specific domain -> ERROR mail to postmaster

2010-09-21 Thread Michael Weissenbacher
Hi List! I have the following problem: one of our customers got a new domain "newdomain.com" where all mail addresses have been transferred to. They also got an old domain "olddomain.com" which had some mail addresses before. It was decided to not use the old domain for receiving emails any more (a

Re: REJECT mails to a specific domain -> ERROR mail to postmaster

2010-09-21 Thread Michael Weissenbacher
Sorry i just spotted a mistake in the telnet example, correct is the following: +++ snip2 +++ $ telnet localhost 25 Trying 127.0.0.1... Connected to mail.myserver.com. Escape character is '^]'. 220 mail.myserver.com ESMTP Postfix ehlo localhost 250-mail.myserver.com 250-PIPELINING 250-SIZE 26214400

Re: REJECT mails to a specific domain -> ERROR mail to postmaster

2010-09-21 Thread Wietse Venema
Michael Weissenbacher: > > BUT - now for every mail that is sent to olddomain.com an ERROR Mail is > > sent to the Postmaster that looks like this: > > +++ snip1 +++ > > From: Mail Delivery System [mailto:mailer-dae...@mail.ourserver.com] > > Sent: Tuesday, September 21, 2010 12:45 PM > > To: Postm

Re: REJECT mails to a specific domain -> ERROR mail to postmaster

2010-09-21 Thread Michael Weissenbacher
Hi Wietse! Wietse Venema: > > Please look at the output from this command: > > $ postconf -n notify_classes > > This parameter was changed from its default value. Why? > > Wietse > No, i didn't change that parameter before: # postconf -n notify_classes # Now i changed it to: noti

Re: Forwarding emails, quick question

2010-09-21 Thread Brian Pribis
Viktor, On Mon, Sep 20, 2010 at 7:38 PM, Victor Duchovni wrote: > On Mon, Sep 20, 2010 at 03:15:37PM -0400, Brian Pribis wrote: > >> If I put >> >>       addr...@virtual_domain m...@gmail.com >> >> Shouldn't it simply forward email from the first address to my gmail account? > > Yes. > >> What h

Re: Virtual users pop3d suggestions

2010-09-21 Thread Charles Marcus
On 2010-09-21 2:47 AM, Nick Edwards wrote: > we see no reason to continue to use dovecot in its current state with > its inherit risks when courier has none of them, the move to courier is > now justified. Just to correct the record... Since the 'risk' you reference is inherent to using IMAP + N

Re: REJECT mails to a specific domain -> ERROR mail to postmaster

2010-09-21 Thread Wietse Venema
Michael Weissenbacher: > Hi Wietse! > > Wietse Venema: > > > > Please look at the output from this command: > > > > $ postconf -n notify_classes > > > > This parameter was changed from its default value. Why? > > > > Wietse > > > No, i didn't change that parameter before: > # postconf

Re: REJECT mails to a specific domain -> ERROR mail to postmaster

2010-09-21 Thread Michael Weissenbacher
Hi Wietse! > > Perhaps some helpful maintainer changed the default setting. > > Please try the following: > > $ postconf -d notify_classes > > The command output should be: > > notify_classes = resource, software > > Apparently, YOUR machine was configured to also notify the postmaste

Re: REJECT mails to a specific domain -> ERROR mail to postmaster

2010-09-21 Thread Wietse Venema
Michael Weissenbacher: > In: MAIL From: SIZE=28675 > Out: 250 2.1.0 Ok > In: RCPT To: > Out: 451 4.3.5 Server configuration error Oops. You are getting postmaster noticifications because of the "Server configuration error". See the maillog file for details. You need to fix that regardless.

Re: REJECT mails to a specific domain -> ERROR mail to postmaster

2010-09-21 Thread Michael Weissenbacher
Hi Wietse! > > Oops. You are getting postmaster noticifications because of the > "Server configuration error". See the maillog file for details. > You need to fix that regardless. > Sorry for the stupid question, but is maillog == /var/log/mail.log ? I think i may have found the problem, i foun

Re: REJECT mails to a specific domain -> ERROR mail to postmaster

2010-09-21 Thread Wietse Venema
Michael Weissenbacher: > Sep 21 15:04:58 smtp1 postfix/smtpd[14679]: warning: unknown smtpd > restriction: "med" That is also a configuration error. Wietse

Re: Forwarding emails, quick question

2010-09-21 Thread Victor Duchovni
On Tue, Sep 21, 2010 at 08:36:49AM -0400, Brian Pribis wrote: > br...@virtual_domain.cc brian #brian is a real account on the server. Postfix configuration files DO NOT support comments that follow data on the *same* line. I hope that this "comment" is just in this message to describe the rule,

Problem with postfix-dnswl-permit (Was Re: REJECT mails to a specific domain -> ERROR mail to postmaster)

2010-09-21 Thread Michael Weissenbacher
Hi Wietse! > Michael Weissenbacher: >> Sep 21 15:04:58 smtp1 postfix/smtpd[14679]: warning: unknown smtpd >> restriction: "med" > > That is also a configuration error. > This error was really HARD to track. Took me the whole day. But now i finally found the real cause. On this server I am using t

Re: Problem with postfix-dnswl-permit (Was Re: REJECT mails to a specific domain -> ERROR mail to postmaster)

2010-09-21 Thread Wietse Venema
Michael Weissenbacher: > Hi Wietse! > > > Michael Weissenbacher: > >> Sep 21 15:04:58 smtp1 postfix/smtpd[14679]: warning: unknown smtpd > >> restriction: "med" > > > > That is also a configuration error. > > > This error was really HARD to track. Took me the whole day. But now i > finally found

Re: transport_maps and round robin dns

2010-09-21 Thread Jeroen Geilman
On 09/21/2010 01:06 AM, Stan Hoeppner wrote: Victor Duchovni put forth on 9/20/2010 6:01 PM: On Tue, Sep 21, 2010 at 12:56:14AM +0200, Jeroen Geilman wrote: Yes, when traffic to the destination is light (message deliveries are spaced multiple seconds or more apart) or is very heavy (

How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Yang Zhang
How do you get Postfix to keep a log of all outgoing mails, in their complete form (all headers + payload) as received from clients? The closest param I've found so far are always_bcc & friends, but these lose some information (at least the BCC field). Thanks in advance for any hints. -- Yang Zhang

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Adam Tauno Williams
On Tue, 2010-09-21 at 11:56 -0700, Yang Zhang wrote: > How do you get Postfix to keep a log of all outgoing mails, in their > complete form (all headers + payload) as received from clients? You can't. [Typically someone on this list will chime in that doing so is trivial if you just read the docs

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Jeroen Geilman
On 09/21/2010 08:56 PM, Yang Zhang wrote: How do you get Postfix to keep a log of all outgoing mails, in their complete form (all headers + payload) as received from clients? The closest param I've found so far are always_bcc& friends, but these lose some information (at least the BCC field). Th

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Jeroen Geilman
On 09/21/2010 09:01 PM, Adam Tauno Williams wrote: On Tue, 2010-09-21 at 11:56 -0700, Yang Zhang wrote: How do you get Postfix to keep a log of all outgoing mails, in their complete form (all headers + payload) as received from clients? You can't. Of course you can. That's what alwa

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Wietse Venema
Yang Zhang: > How do you get Postfix to keep a log of all outgoing mails, in their > complete form (all headers + payload) as received from clients? The > closest param I've found so far are always_bcc & friends, but these > lose some information (at least the BCC field). Thanks in advance for > an

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Adam Tauno Williams
On Tue, 2010-09-21 at 21:07 +0200, Jeroen Geilman wrote: > On 09/21/2010 09:01 PM, Adam Tauno Williams wrote: > > On Tue, 2010-09-21 at 11:56 -0700, Yang Zhang wrote: > >> How do you get Postfix to keep a log of all outgoing mails, in their > >> complete form (all headers + payload) as received

metrics to show benefits of postfix vs. sendmail?

2010-09-21 Thread Jay G. Scott
they haven't started shouting yet, but i sense it's coming. i just swapped postfix in for sendmail on a mail server. are there any metrics i can get to show why postfix is better? they seem to be all up in arms about memory usage. but doing this ps -eo pid,vsz,rss,pmem,time,comm | grep sendmail

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Jeroen Geilman
On 09/21/2010 09:12 PM, Adam Tauno Williams wrote: On Tue, 2010-09-21 at 21:07 +0200, Jeroen Geilman wrote: On 09/21/2010 09:01 PM, Adam Tauno Williams wrote: On Tue, 2010-09-21 at 11:56 -0700, Yang Zhang wrote: How do you get Postfix to keep a log of all outgoing mails, in t

Re: Please Help Me Secure My Mail Server

2010-09-21 Thread bper
Stan Hoeppner wrote: > > Welcome to mail server operations 101. :) You've got a lot to learn, > but there's time. The internet isn't going away tomorrow. Stick around > and read all the posts. You can learn quite a bit. > Yes, I know I have a lot to learn. Mail server operations 101 is wh

Re: metrics to show benefits of postfix vs. sendmail?

2010-09-21 Thread Jeroen Geilman
On 09/21/2010 09:18 PM, Jay G. Scott wrote: they haven't started shouting yet, but i sense it's coming. i just swapped postfix in for sendmail on a mail server. Congratulations , you've arrived on the right side of sanity :) are there any metrics i can get to show why postfix is better?

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Victor Duchovni
On Tue, Sep 21, 2010 at 11:56:41AM -0700, Yang Zhang wrote: > How do you get Postfix to keep a log of all outgoing mails, in their > complete form (all headers + payload) as received from clients? The > closest param I've found so far are always_bcc & friends, but these > lose some information (at

Re: metrics to show benefits of postfix vs. sendmail?

2010-09-21 Thread Victor Duchovni
On Tue, Sep 21, 2010 at 02:18:32PM -0500, Jay G. Scott wrote: > i just swapped postfix in for sendmail on a mail server. > are there any metrics i can get to show why postfix is better? [ Sendmail probably evolved in some respects since I've last looked at it closely. The below may be somewhat

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Yang Zhang
On Tue, Sep 21, 2010 at 12:35 PM, Victor Duchovni wrote: > On Tue, Sep 21, 2010 at 11:56:41AM -0700, Yang Zhang wrote: > >> How do you get Postfix to keep a log of all outgoing mails, in their >> complete form (all headers + payload) as received from clients? The >> closest param I've found so far

postfix/local: Too many open files when opening .forward

2010-09-21 Thread Alexander 'Leo' Bergolth
Hi! Since yesterday I am experiencing big problems when delivering mail to an alias-list. (Yes, I have set up an owner-listname alias. :-)) When delivering mail to a list which is implemented as an ldap-alias-list (currently 289 recipients), the local daemon delivers most of the mails to local ma

Re: postfix/local: Too many open files when opening .forward

2010-09-21 Thread Wietse Venema
Alexander 'Leo' Bergolth: > Hi! > > Since yesterday I am experiencing big problems when delivering mail to > an alias-list. (Yes, I have set up an owner-listname alias. :-)) Do you have the RIGHT owner-listname alias. > When delivering mail to a list which is implemented as an > ldap-alias-list

Re: postfix/local: Too many open files when opening .forward

2010-09-21 Thread Alexander 'Leo' Bergolth
On 09/21/2010 10:57 PM, Wietse Venema wrote: > Alexander 'Leo' Bergolth: >> Since yesterday I am experiencing big problems when delivering mail to >> an alias-list. (Yes, I have set up an owner-listname alias. :-)) > > Do you have the RIGHT owner-listname alias. This seems to be the problem. I h

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Victor Duchovni
On Tue, Sep 21, 2010 at 01:19:00PM -0700, Yang Zhang wrote: > > The archives of this list contain suggestions of how to achieve this > > with a regexp or pcre recipient_bcc_maps which generates copies of > > the message without losing envelope information. > > Was this the technique? > > http://

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Yang Zhang
On Tue, Sep 21, 2010 at 3:05 PM, Victor Duchovni wrote: > On Tue, Sep 21, 2010 at 01:19:00PM -0700, Yang Zhang wrote: > >> > The archives of this list contain suggestions of how to achieve this >> > with a regexp or pcre recipient_bcc_maps which generates copies of >> > the message without losing

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Victor Duchovni
On Tue, Sep 21, 2010 at 03:13:33PM -0700, Yang Zhang wrote: > On Tue, Sep 21, 2010 at 3:05 PM, Victor Duchovni > wrote: > > On Tue, Sep 21, 2010 at 01:19:00PM -0700, Yang Zhang wrote: > > > >> > The archives of this list contain suggestions of how to achieve this > >> > with a regexp or pcre reci

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Yang Zhang
On Tue, Sep 21, 2010 at 3:26 PM, Victor Duchovni wrote: > On Tue, Sep 21, 2010 at 03:13:33PM -0700, Yang Zhang wrote: > >> On Tue, Sep 21, 2010 at 3:05 PM, Victor Duchovni >> wrote: >> > On Tue, Sep 21, 2010 at 01:19:00PM -0700, Yang Zhang wrote: >> > >> >> > The archives of this list contain sug

Re: postfix/local: Too many open files when opening .forward

2010-09-21 Thread Wietse Venema
Alexander 'Leo' Bergolth: > On 09/21/2010 10:57 PM, Wietse Venema wrote: > > Alexander 'Leo' Bergolth: > >> Since yesterday I am experiencing big problems when delivering mail to > >> an alias-list. (Yes, I have set up an owner-listname alias. :-)) > > > > Do you have the RIGHT owner-listname alia

Re: Virtual users pop3d suggestions

2010-09-21 Thread Noel Butler
On Tue, 2010-09-21 at 16:47 +1000, Nick Edwards wrote: > > > > On Tue, Sep 14, 2010 at 4:53 AM, Seth Mattinen > wrote: > > > > > > Thanks, we have over the weekend ran two testbeds at full thrashing > with in house written scripts, the timings show after 57 hours

Re: Problem with postfix-dnswl-permit (Was Re: REJECT mails to a specific domain -> ERROR mail to postmaster)

2010-09-21 Thread Stan Hoeppner
Wietse Venema put forth on 9/21/2010 10:12 AM: > Michael Weissenbacher: >> Hi Wietse! >> >>> Michael Weissenbacher: Sep 21 15:04:58 smtp1 postfix/smtpd[14679]: warning: unknown smtpd restriction: "med" >>> >>> That is also a configuration error. >>> >> This error was really HARD to track.

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Victor Duchovni
On Tue, Sep 21, 2010 at 03:41:11PM -0700, Yang Zhang wrote: > >> That's what it does - it generates u...@domain@bcc.invalid - but I was > >> looking for something that preserves the BCC headers. > > > > You are mightily confused. ?Bcc headers are never sent by the MUA, > > so there is nothing to p

Re: Please Help Me Secure My Mail Server

2010-09-21 Thread Stan Hoeppner
bper put forth on 9/21/2010 2:26 PM: > Point taken. I have, and still am, investigating AV scanning. What are your > thoughts on the best solution/fit with postfix? Someone else will need to answer. I don't do A/V scanning in Postfix. I simply reject any emails, using mime_header_checks, that co

Re: Please Help Me Secure My Mail Server

2010-09-21 Thread Victor Duchovni
On Tue, Sep 21, 2010 at 09:09:13PM -0500, Stan Hoeppner wrote: > bper put forth on 9/21/2010 2:26 PM: > > > Point taken. I have, and still am, investigating AV scanning. What are your > > thoughts on the best solution/fit with postfix? > > Someone else will need to answer. I don't do A/V scanni

Re: How to log/archive full outgoing mails including BCC info?

2010-09-21 Thread Yang Zhang
On Tue, Sep 21, 2010 at 7:07 PM, Victor Duchovni wrote: > On Tue, Sep 21, 2010 at 03:41:11PM -0700, Yang Zhang wrote: > >> >> That's what it does - it generates u...@domain@bcc.invalid - but I was >> >> looking for something that preserves the BCC headers. >> > >> > You are mightily confused. ?Bcc