Re: valvula or policyd

2014-12-23 Thread Benning, Markus
I just implemented a first version of a accounting plugin for mtpolicyd: https://www.mtpolicyd.org/documentation.html#Mail::MtPolicyd::Plugin::Accounting github project: https://github.com/benningm/mtpolicyd I'm currently testing it on a small postfix installation with the following setup: Vhos

prevent server from receiving mail for root@localhost

2014-12-23 Thread Tomas Macek
Hello, I'm trying to prevent my testing postfix installation 2.8.4 from being abused by emails that will go to the root@localhost email address. I found out that it receives these messages accindetally, when I tested my configuration. The root@localhost must be accessible, when the mail comes f

Re: prevent server from receiving mail for root@localhost

2014-12-23 Thread Wietse Venema
Tomas Macek: > Hello, I'm trying to prevent my testing postfix installation 2.8.4 from > being > abused by emails that will go to the root@localhost email address. > I found out that it receives these messages accindetally, when I > tested my configuration. > The root@localhost must be accessib

Re: prevent server from receiving mail for root@localhost

2014-12-23 Thread li...@rhsoft.net
Am 23.12.2014 um 14:23 schrieb Tomas Macek: I believe the right cfg place is smtpd_recipient_restrictions where I have this: smtpd_recipient_restrictions = permit_mynetworks, check_recipient_access Questions: --- 1) is the smtpd_recipient_restrictio

Re: prevent server from receiving mail for root@localhost

2014-12-23 Thread Nerijus Kislauskas
On 12/23/2014 03:23 PM, Tomas Macek wrote: > Hello, I'm trying to prevent my testing postfix installation 2.8.4 > from being abused by emails that will go to the root@localhost email > address. I found out that it receives these messages accindetally, > when I tested my configuration. > The root@lo

Re: prevent server from receiving mail for root@localhost

2014-12-23 Thread Tomas Macek
Tomas Macek: Hello, I'm trying to prevent my testing postfix installation 2.8.4 from being abused by emails that will go to the root@localhost email address. I found out that it receives these messages accindetally, when I tested my configuration. The root@localhost must be accessible, when the m

Re: prevent server from receiving mail for root@localhost

2014-12-23 Thread li...@rhsoft.net
Am 23.12.2014 um 15:03 schrieb Tomas Macek: Tomas Macek: Hello, I'm trying to prevent my testing postfix installation 2.8.4 from being abused by emails that will go to the root@localhost email address. I found out that it receives these messages accindetally, when I tested my configuration. The

Re: prevent server from receiving mail for root@localhost

2014-12-23 Thread Tomas Macek
On Tue, 23 Dec 2014, li...@rhsoft.net wrote: Am 23.12.2014 um 15:03 schrieb Tomas Macek: > Tomas Macek: > > Hello, I'm trying to prevent my testing postfix installation 2.8.4 > > from > > being > > abused by emails that will go to the root@localhost email address. > > I found out that

error looking up password info

2014-12-23 Thread Stephen Ingram
I'm trying to move from a CentOS 6.x server that uses Postfix 2.6.6 to a CentOS 7 server that uses version 2.10.1. I'm running the same configuration that works on the old setup, however, Postfix won't deliver the message (via LMTP) and instead says: postfix/local[24338]: warning: error looking up

Re: error looking up password info

2014-12-23 Thread li...@rhsoft.net
Am 23.12.2014 um 16:06 schrieb Stephen Ingram: I'm trying to move from a CentOS 6.x server that uses Postfix 2.6.6 to a CentOS 7 server that uses version 2.10.1. I'm running the same configuration that works on the old setup, however, Postfix won't deliver the message (via LMTP) and instead says

Re: error looking up password info

2014-12-23 Thread Wietse Venema
Stephen Ingram: > I'm trying to move from a CentOS 6.x server that uses Postfix 2.6.6 to a > CentOS 7 server that uses version 2.10.1. I'm running the same > configuration that works on the old setup, however, Postfix won't deliver > the message (via LMTP) and instead says: > > postfix/local[24338

Re: error looking up password info

2014-12-23 Thread Stephen Ingram
On Tue, Dec 23, 2014 at 7:11 AM, Wietse Venema wrote: > Stephen Ingram: > > I'm trying to move from a CentOS 6.x server that uses Postfix 2.6.6 to a > > CentOS 7 server that uses version 2.10.1. I'm running the same > > configuration that works on the old setup, however, Postfix won't deliver > >

Re: error looking up password info

2014-12-23 Thread Viktor Dukhovni
On Tue, Dec 23, 2014 at 08:29:52AM -0800, Stephen Ingram wrote: > I thought once > the address was rewritten and the mail was handed over to local for > delivery, then mailbox_transport would be followed which in my case sends > via lmtp. Is that not correct? Since mailbox_transport comes after .

Re: error looking up password info

2014-12-23 Thread Wietse Venema
Viktor Dukhovni: > On Tue, Dec 23, 2014 at 08:29:52AM -0800, Stephen Ingram wrote: > > > I thought once > > the address was rewritten and the mail was handed over to local for > > delivery, then mailbox_transport would be followed which in my case sends > > via lmtp. Is that not correct? > > Sinc

Re: error looking up password info

2014-12-23 Thread Viktor Dukhovni
On Tue, Dec 23, 2014 at 12:09:04PM -0500, Wietse Venema wrote: > Viktor Dukhovni: > > On Tue, Dec 23, 2014 at 08:29:52AM -0800, Stephen Ingram wrote: > > > > > I thought once > > > the address was rewritten and the mail was handed over to local for > > > delivery, then mailbox_transport would be f

Re: error looking up password info

2014-12-23 Thread Stephen Ingram
On Tue, Dec 23, 2014 at 9:03 AM, Viktor Dukhovni wrote: > On Tue, Dec 23, 2014 at 08:29:52AM -0800, Stephen Ingram wrote: > > > I thought once > > the address was rewritten and the mail was handed over to local for > > delivery, then mailbox_transport would be followed which in my case sends > >

Re: error looking up password info

2014-12-23 Thread Stephen Ingram
On Tue, Dec 23, 2014 at 9:09 AM, Wietse Venema wrote: > Viktor Dukhovni: > > On Tue, Dec 23, 2014 at 08:29:52AM -0800, Stephen Ingram wrote: > > > > > I thought once > > > the address was rewritten and the mail was handed over to local for > > > delivery, then mailbox_transport would be followed

Re: error looking up password info

2014-12-23 Thread Stephen Ingram
On Tue, Dec 23, 2014 at 9:18 AM, Viktor Dukhovni wrote: > On Tue, Dec 23, 2014 at 12:09:04PM -0500, Wietse Venema wrote: > > Viktor Dukhovni: > > > On Tue, Dec 23, 2014 at 08:29:52AM -0800, Stephen Ingram wrote: > > > > > > > I thought once > > > > the address was rewritten and the mail was hande

Re: error looking up password info

2014-12-23 Thread Viktor Dukhovni
On Tue, Dec 23, 2014 at 09:31:15AM -0800, Stephen Ingram wrote: > > > > I thought once > > > > the address was rewritten and the mail was handed over to local for > > > > delivery, then mailbox_transport would be followed which in my case > > > > sends > > > > via lmtp. Is that not correct? > > >

Re: error looking up password info

2014-12-23 Thread Wietse Venema
Stephen Ingram: > On Tue, Dec 23, 2014 at 9:03 AM, Viktor Dukhovni > wrote: > > > On Tue, Dec 23, 2014 at 08:29:52AM -0800, Stephen Ingram wrote: > > > > > I thought once > > > the address was rewritten and the mail was handed over to local for > > > delivery, then mailbox_transport would be foll

Re: error looking up password info

2014-12-23 Thread Viktor Dukhovni
On Tue, Dec 23, 2014 at 12:39:52PM -0500, Wietse Venema wrote: > > I'm using virtual aliases. Wouldn't that cause message to be handed off to > > virtual_mailbox or mailbox_transport? > > The routing depends on the recipient address, after optional > address rewriting. > > In your case it would

Re: error looking up password info

2014-12-23 Thread Stephen Ingram
On Tue, Dec 23, 2014 at 9:45 AM, Viktor Dukhovni wrote: > On Tue, Dec 23, 2014 at 12:39:52PM -0500, Wietse Venema wrote: > > > > I'm using virtual aliases. Wouldn't that cause message to be handed > off to > > > virtual_mailbox or mailbox_transport? > > > > The routing depends on the recipient ad

Re: error looking up password info

2014-12-23 Thread Viktor Dukhovni
On Tue, Dec 23, 2014 at 10:11:43AM -0800, Stephen Ingram wrote: > I always used > mailbox_transport instead of virtual_transport as I thought the latter was > for virtual_mailbox_maps only. From your explanation, it appears as though > virtual_mailbox_maps could be used in my case too. It is a re

[Fwd: Multiple PTR and reject_unknown_helo_hostname]

2014-12-23 Thread James B. Byrne
We have an smtpd_helo_restriction of reject_unknown_helo_hostname that regularly fails for one of our (very) large correspondents. As it turns out the reason is quite legitimate, the helo identity fqdn issued from several of their email gateways does not match up to the IP address that they are u

Re: [Fwd: Multiple PTR and reject_unknown_helo_hostname]

2014-12-23 Thread Wietse Venema
James B. Byrne: > 192.168.0.1 IN PTR mail1.domain.tld. > 192.168.0.1 IN PTR mail2.domain.tld. > 192.168.0.1 IN PTR mail3.domain.tld. For that to work EVERY name needs to resolve to 192.168.0.1. Postfix is not going to try all possible reverse mappings. Depending on the system library i

Re: Multiple PTR and reject_unknown_helo_hostname

2014-12-23 Thread li...@rhsoft.net
Am 23.12.2014 um 14:32 schrieb James B. Byrne: We have an smtpd_helo_restriction of reject_unknown_helo_hostname that regularly fails for one of our (very) large correspondents. you can't use this seriously beause of too many people not able or willing to setup their basic prerequisites for a

Log header to file and discard message

2014-12-23 Thread Fred Newtz
Hello, We have a development server where we want to simply log the entire header to a file and discard the email. I realize with the smtp_header_checks you cannot discard the message and I am unsure if you could log the entire header to a log file. I was thinking about building a custom filt

Re: Log header to file and discard message

2014-12-23 Thread Viktor Dukhovni
On Tue, Dec 23, 2014 at 03:34:41PM -0700, Fred Newtz wrote: > We have a development server where we want to simply log the > entire header to a file and discard the email. I realize with the > smtp_header_checks you cannot discard the message and I am unsure > if you could log the entire header t

Re: Log header to file and discard message

2014-12-23 Thread Wietse Venema
Viktor Dukhovni: > The Morris worm had: > > #define MAIL_FROM "mail from:\n" > #define MAIL_RCPT "rcpt to:<\"| sed \'1,/^$/d\' | /bin/sh ; exit 0\">\n" > > to delete the header and execute the body, you can surely do the converse. > > aliases: > logheader: "|sed -ne 'p;/^$/q'>>

RE: 5.5.4 Unsupported option:

2014-12-23 Thread steve zeng
Thanks, Nick and Mr Venema, I put the following debug and command_filter in main.cf: smtpd_command_filter = pcre:/etc/postfix/command_filter notify_classes = resource, software, protocol, policy /etc/postfix/command_filter: /^(MAIL\s+FROM:).+(<.+>)/ $1$2 In postmaster email, I got: Out:

Re: 5.5.4 Unsupported option:

2014-12-23 Thread li...@rhsoft.net
Am 24.12.2014 um 02:32 schrieb steve zeng: I put the following debug and command_filter in main.cf: smtpd_command_filter = pcre:/etc/postfix/command_filter notify_classes = resource, software, protocol, policy /etc/postfix/command_filter: /^(MAIL\s+FROM:).+(<.+>)/ $1$2 In postmaster ema