Re: mail-to-script messages id and from lines

2021-11-23 Thread Jürgen Weber
> The "id" line should start with tab or space. That's how Postfix creates the > line. And my pipe script killed the blank. Now the Python parser works fine. Thanks very much for your help, Jürgen [('Return-Path', ''), ('X-Original-To', 'maild@my.virtual'), ('Delivered-To',

Re: mail-to-script messages id and from lines

2021-11-23 Thread Scott Kitterman
On Tuesday, November 23, 2021 6:16:43 PM EST Wietse Venema wrote: > J?rgen Weber: > > From webe...@host.my.tld Sun Nov 21 19:11:19 2021 > > Return-Path: > > X-Original-To: maild@my.virtual > > Delivered-To: ma...@host.my.tld > > Received: by host.my.tld (Postfix, from userid 1001) > > id

Re: mail-to-script messages id and from lines

2021-11-23 Thread Wietse Venema
J?rgen Weber: > From webe...@host.my.tld Sun Nov 21 19:11:19 2021 > Return-Path: > X-Original-To: maild@my.virtual > Delivered-To: ma...@host.my.tld > Received: by host.my.tld (Postfix, from userid 1001) > id D3DFD783; Sun, 21 Nov 2021 19:11:19 +0100 (CET) The "id" line should start with tab or

mail-to-script messages id and from lines

2021-11-23 Thread Jürgen Weber
I have Postfix (3.6.3, FreeBSD 12) forward mail for a user to a script maild: "| /usr/local/sbin/mailsave" The messages have From and id lines which break Python's (3.7) email.Parser Can you prevent Postfix from adding these lines? Thanks, Juergen >From webe...@host.my.tld Sun Nov 21

Re: blocking incomming mail

2021-11-23 Thread Wietse Venema
natan: > Hi > I need block all in incomming to one e-mail like: > > to= DISCARD > but allow: > from= > > At the earliest level as possible only in smtpd_recipient_restrictions ? smtpd_recipient_restrictions = check_recipient_access inline:{ { u...@domain.ltd = DISCARD } }

blocking incomming mail

2021-11-23 Thread natan
Hi I need block all in incomming to one e-mail like: to= DISCARD but allow: from= At the earliest level as possible only in smtpd_recipient_restrictions ? --

Re: Whitelisting by subject

2021-11-23 Thread Wietse Venema
Lothar Schilling: > Hi everybody, > > amongst other duties I am the adminstrator of another organisation's > small (samba) server. Each day this server will send me its logs via > email. Sadly, more often than not those emails get discarded by our > relay server. Sometimes they fall victim to

Whitelisting by subject

2021-11-23 Thread Lothar Schilling
Hi everybody, amongst other duties I am the adminstrator of another organisation's small (samba) server. Each day this server will send me its logs via email. Sadly, more often than not those emails get discarded by our relay server. Sometimes they fall victim to smtpd_relay_restrictions