[opensuse] Postfix & header checks
Hi, I have a rule in the header-checks to check the date. If it's in the past or the far future, I reject the message. I had a complaint that an old mail could not be forwarded, the mail-client displayed my reject message : adjust your clock, your mail has a date from the past. Since the PC's clock is OK I was puzzled. When I sniffed the mail-transaction I did see the Date: header, but there was a second Date: header, from the original message. So my question is : how does postfix handle "headers" ? I presumed that after the body of the message started header checks stopped to continue with body checks. The rule I have is : /^Date: .* 200[0-8]/ REJECT Your email has a date from the past. Fix your system clock and try again. -- Met vriendelijke groeten, Koenraad Lelong
Koenraad Lelong wrote:
So my question is : how does postfix handle "headers" ? I presumed that after the body of the message started header checks stopped to continue with body checks.
I'm pretty certain only the header portion is checked with header_checks. /Per -- Per Jessen, Zürich (1.6°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Koenraad Lelong wrote:
So my question is : how does postfix handle "headers" ? I presumed that after the body of the message started header checks stopped to continue with body checks.
I'm pretty certain only the header portion is checked with header_checks, but the default for nested_header_checks is $header_checks which is your problem. Set nested_header_checks to empty. /Per -- Per Jessen, Zürich (1.6°C) -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Per Jessen schreef:
Koenraad Lelong wrote:
So my question is : how does postfix handle "headers" ? I presumed that after the body of the message started header checks stopped to continue with body checks.
I'm pretty certain only the header portion is checked with header_checks, but the default for nested_header_checks is $header_checks which is your problem.
Set nested_header_checks to empty.
/Per
Thanks, that seems to have done it (I asked to send one message and this worked). Carlos, I you look at my rule, you will see that I check for dates in 2008 and before, those I reject. Since we are more than a month in 2009 I assume there is no backlog. -- Met vriendelijke groeten, Koenraad Lelong
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday, 2009-02-10 at 08:35 +0100, Koenraad Lelong wrote:
Carlos, I you look at my rule, you will see that I check for dates in 2008 and before, those I reject. Since we are more than a month in 2009 I assume there is no backlog.
Ah, no, no problem then X'-) - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEYEARECAAYFAkmRd4YACgkQtTMYHG2NR9WgawCfZv4kRwVZuXg+ip7LTAbtWe+e +B8AoJJyNwUjjT7CB06fveT6zB4y4aiE =xxEK -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Monday, 2009-02-09 at 16:39 +0100, Koenraad Lelong wrote:
Hi, I have a rule in the header-checks to check the date. If it's in the past or the far future, I reject the message.
Interesting. But suppose your server goes down for, say, a day. Or your ISP line. Whatever. Mail to you is queued on their respective servers, and when you go back on-line, they start to feed you the delayed mail... which you will reject. Servers may typically queue email for up to four days. It could happen they have a problem, or you have a problem, and there is a delay... - -- Cheers, Carlos E. R. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.9 (GNU/Linux) iEUEARECAAYFAkmQcd8ACgkQtTMYHG2NR9XClwCXaaQKzhadSozJiFin52P9emjh CwCfYm5husRxQwjUhvuOMs2mrjTkXfo= =Hhaf -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (3)
-
Carlos E. R.
-
Koenraad Lelong
-
Per Jessen