Re: How to write pcre rules to exclude attachment?

2016-11-02 Thread Noel Jones
On 11/2/2016 10:45 PM, vod vos wrote: > Hi everyone, > > /etc/postfix/header_checks.pcre : >/^Content-(Disposition|Type).*name\s*=\s*"?([^;]*(\.|=2E)( > ade|adp|asp|bas|bat|chm|cmd|com|cpl|crt|dll|exe| > hlp|ht[at]| >

How to write pcre rules to exclude attachment?

2016-11-02 Thread vod vos
Hi everyone, /etc/postfix/header_checks.pcre: /^Content-(Disposition|Type).*name\s*=\s*"?([^;]*(\.|=2E)( ade|adp|asp|bas|bat|chm|cmd|com|cpl|crt|dll|exe| hlp|ht[at]| inf|ins|isp|jse?|lnk|md[betw]|ms[cipt]|nws| \{[[:xdigit:]]{8}(?:-[[:xdigit:]]{4}){3}-[[:xdigit:]]{12}\}| ops|pcd|pif|prf|reg|

Re: Why does Postfix accept a mail to a non-existing account on the local system?

2016-11-02 Thread Wietse Venema
Bodo Thiesen: > Trying to send to something else like > > rcpt to:bot...@postfix.org > > would cause the message > > 454 4.7.1 : Relay access denied The destination is remote, and this MTA will not relay email FROM this SMTP client to remote destinations. > Why do I get that one here, but not

Re: Why does Postfix accept a mail to a non-existing account on the local system?

2016-11-02 Thread Bodo Thiesen
* wie...@porcupine.org (Wietse Venema) hat geschrieben: > If you want to block mail like this on a machine that does not have > sv1.example.org configured as a local destination, then you may > want to look into reject_unverified_recipient. Ok, thanks, that works. However ... why? Trying to send

FYI: [dane-users] Re: posttls-finger vs. dane.sys4.de

2016-11-02 Thread Viktor Dukhovni
[ Reposting to postfix-users, this may be of interest to Postfix users, who are not on the dane-us...@sys4.de list. ] On Wed, Nov 02, 2016 at 09:52:58PM +0100, Andreas Schulze wrote: > we found messages to "sushi-circle.de" stay in our MTA facing outside world: > "status=deferred (TLSA lookup e

Re: [Feature-request] (smtpd_)milter_exceptions

2016-11-02 Thread Christian Rößner
> Am 01.11.2016 um 13:48 schrieb Wietse Venema : > > Christian Ro??ner: >> >>> Am 25.10.2016 um 08:22 schrieb Wietse Venema : >>> >>> Wietse Venema: Wietse Venema: > Looks like either 1) an exclusion mechanism or 2) a selection > mechanism would do the job. > > 1) Nullifies

Re: Documentation of virtual_alias_maps: Was: Re: Getting false unknown user errors

2016-11-02 Thread Viktor Dukhovni
> On Nov 2, 2016, at 1:14 PM, @lbutlr wrote: > >> 3) Postfix 2008 by Patrick Ben Koetter Ralf Hildebrandt > > According to my Amazon page, that one is in German so is not going to be > helpful for me. > >> 4) Postfix May 25, 2001 by Richard Blum >> >> 5) The Definitive Guide to Postfix Mar 1

Re: Why does Postfix accept a mail to a non-existing account on the local system?

2016-11-02 Thread Wietse Venema
Bodo Thiesen: > Hello list > > Why does Postfix accept a mail to a non-existing account on the local system? sv1.example.org is not local, after you removed that name from mydestination. You can run multiple Postfix MTAs on the same machine; not every Postfix MTA is required to be configured to

Re: reject_unknown_client_hostname when nameserver is unreachable

2016-11-02 Thread @lbutlr
On Nov 2, 2016, at 7:13 AM, Bill Cole wrote: > On 2 Nov 2016, at 7:28, Karel wrote: > >>> On 2016-11-02 11:36, Wietse Venema wrote: NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 450 4.7.1 Client host rejected: cannot find your hostname, [x.x.x.x] >>> >>> Note that this is a 450 status

Why does Postfix accept a mail to a non-existing account on the local system?

2016-11-02 Thread Bodo Thiesen
Hello list Why does Postfix accept a mail to a non-existing account on the local system? Here my /etc/postfix/main.cf, Version 1: [...] myhostname = sv1.example.org [...] mydestination = sv1.example.org, localhost.localdomain, localhost [...] Talking to my server: $ telnet $IP smtp Trying $IP.

Re: Documentation of virtual_alias_maps: Was: Re: Getting false unknown user errors

2016-11-02 Thread @lbutlr
On Nov 2, 2016, at 4:18 AM, Postfix User wrote: > On Wed, 2 Nov 2016 03:17:14 -0600, @lbutlr stated: > >> On Nov 1, 2016, at 5:20 PM, Wietse Venema wrote: >>> That's what books like 'the Postfix book' were been written for. >> >> The which what? The only postfix book I know about is the O’Reill

Re: reject_unknown_client_hostname when nameserver is unreachable

2016-11-02 Thread Bill Cole
On 2 Nov 2016, at 7:28, Karel wrote: On 2016-11-02 11:36, Wietse Venema wrote: NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 450 4.7.1 Client host rejected: cannot find your hostname, [x.x.x.x] Note that this is a 450 status, because the name server did not reply. A proper SMTP client will

Re: reject_unknown_client_hostname when nameserver is unreachable

2016-11-02 Thread Karel
> On 2016-11-02 13:27, Wietse Venema wrote: > > Karel: >>> On 2016-11-02 11:36, Wietse Venema wrote: NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 450 4.7.1 Client host rejected: cannot find your hostname, [x.x.x.x] >>> >>> Note that this is a 450 status, because the name server did not

Re: reject_unknown_client_hostname when nameserver is unreachable

2016-11-02 Thread Wietse Venema
Karel: > > On 2016-11-02 11:36, Wietse Venema wrote: > >> NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 450 4.7.1 Client host > >> rejected: cannot find your hostname, [x.x.x.x] > > > > Note that this is a 450 status, because the name server did not reply. > > A proper SMTP client will therefore

Re: reject_unknown_client_hostname when nameserver is unreachable

2016-11-02 Thread Karel
> On 2016-11-02 11:36, Wietse Venema wrote: >> NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 450 4.7.1 Client host >> rejected: cannot find your hostname, [x.x.x.x] > > Note that this is a 450 status, because the name server did not reply. > A proper SMTP client will therefore try to deliver the

Re: Getting false unknown user errors

2016-11-02 Thread wilfried.es...@essignetz.de
Am 02.11.2016 um 06:57 schrieb @lbutlr: > Not sure how to force amavis to generate a virus alert. Ask searchengine you confide to for EICAR and Testvirus. Willi

Missing/Broken link

2016-11-02 Thread Postfix User
On the "http://www.postfix.org/docs.html"; page, the link to "Postfix Howtos by Matthias Andree" is apparently broken: Not Found The requested document was not found on this server. Web Server at dt.e-technik.tu-dortmund.de There are also a few others th

Re: reject_unknown_client_hostname when nameserver is unreachable

2016-11-02 Thread Wietse Venema
Karel: > Hello, > > I am using following smtpd_client_restriction: > > reject_unknown_client_hostname > > Now, both my nameservers were offline, and postfix could not resolve IP > addresses and thus rejected all hosts: > > NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 450 4.7.1 Client host >

Re: Documentation of virtual_alias_maps: Was: Re: Getting false unknown user errors

2016-11-02 Thread Postfix User
On Wed, 2 Nov 2016 03:17:14 -0600, @lbutlr stated: >On Nov 1, 2016, at 5:20 PM, Wietse Venema wrote: >> That's what books like 'the Postfix book' were been written for. > >The which what? The only postfix book I know about is the O’Reilly one >that is more than ten years old. 1) Postfix: The De

Re: reject_unknown_client_hostname when nameserver is unreachable

2016-11-02 Thread Karol Augustin
On 02/11/16 09:25, Karel wrote: Hello, I am using following smtpd_client_restriction: reject_unknown_client_hostname Now, both my nameservers were offline, and postfix could not resolve IP addresses and thus rejected all hosts: NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 450 4.7.1 Client

Re: Getting false unknown user errors

2016-11-02 Thread Christian Eberl
On 02.11.2016 06:57, @lbutlr wrote: On 01 Nov 2016, at 07:21, Bill Cole wrote: Please, humor me: set syslog_name and retest. I have set it, but the occurrence of amavis sending a virus alert is quite rare. The last one before this was more than a month ago. Not sure how to force amavis to g

reject_unknown_client_hostname when nameserver is unreachable

2016-11-02 Thread Karel
Hello, I am using following smtpd_client_restriction: reject_unknown_client_hostname Now, both my nameservers were offline, and postfix could not resolve IP addresses and thus rejected all hosts: NOQUEUE: reject: RCPT from unknown[x.x.x.x]: 450 4.7.1 Client host rejected: cannot find your h

Re: Documentation of virtual_alias_maps: Was: Re: Getting false unknown user errors

2016-11-02 Thread @lbutlr
On Nov 1, 2016, at 5:20 PM, Wietse Venema wrote: > That's what books like 'the Postfix book' were been written for. The which what? The only postfix book I know about is the O’Reilly one that is more than ten years old.