Postfix delivery problem

2016-12-23 Thread G. Schlisio
Dear list, We have a mail server with postfix and dovecot on Archlinux where we have mail addresses with local unix accounts (authenticated by pam) and without unix accounts (dovecot passwd-file authentication). The problem only affects those non-unix account mail addresses. (There are also comple

Re: Postfix delivery problem

2016-12-23 Thread John Fawcett
On 12/23/2016 09:47 AM, G. Schlisio wrote: > Dear list, > > We have a mail server with postfix and dovecot on Archlinux where we > have mail > addresses with local unix accounts (authenticated by pam) and without > unix accounts (dovecot passwd-file authentication). The problem only > affects those

Re: Postfix delivery problem

2016-12-23 Thread G. Schlisio
> > Georg > > probably the best thing is to compare your previous configuration to the > new one and see what changed. > > For help with your current configuration, you should post it. > > John hi john, thank you for your suggestion. as i tried to indicate with "no changes in mail config" th

Re: Postfix delivery problem

2016-12-23 Thread John Fawcett
On 12/23/2016 10:33 AM, G. Schlisio wrote: >> Georg >> >> probably the best thing is to compare your previous configuration to the >> new one and see what changed. >> >> For help with your current configuration, you should post it. >> >> John > hi john, > > thank you for your suggestion. as i tried

Re: Make postfix log to show how sender rewriting happens

2016-12-23 Thread Burn Zero
Thank you. But when I use smtpd_end_of_data_restrictions = check_sender_access static:INFO I get, postfix/smtpd[13668]: warning: unknown smtpd restriction: "INFO postfix/smtpd[13668]: 12E9F6420F: reject: END-OF-MESSAGE from host[x.x.x.x]: 451 4.3.5 Server configuration error; fro

Re: pipe and resend mail

2016-12-23 Thread Stéphane MERLE
not good: 3 phases : 1 --> the mail is for admin or CRM ? --> forward to admin or crm && return 0 2 --> the mail is crap --> delete it && return 0 3 --> none of the previous --> send to bdd by api rest call http so the sendmail is not always the final decision ... I feel that the originale r

Re: Postfix delivery problem

2016-12-23 Thread G. Schlisio
> Hi Georg > > for reporting problems you can refer to > http://www.postfix.org/DEBUG_README.html#mail if you have not already > seen it. > > For the configuration, command output from * > * > > *postconf -n* > > *postconf -Mf* > > is a good starting point. Most people post it to the list, bu

Re: Postfix delivery problem

2016-12-23 Thread John Fawcett
On 12/23/2016 12:34 PM, G. Schlisio wrote: >> Hi Georg >> >> for reporting problems you can refer to >> http://www.postfix.org/DEBUG_README.html#mail if you have not already >> seen it. >> >> For the configuration, command output from * >> * >> >> *postconf -n* >> >> *postconf -Mf* >> >> is a good

Re: Postfix delivery problem

2016-12-23 Thread G. Schlisio
> Couldn't find the postconf -n output at that link sorry, correct link for postconf -n: http://termbin.com/w509

Re: Postfix delivery problem

2016-12-23 Thread John Fawcett
On 12/23/2016 01:56 PM, G. Schlisio wrote: >> Couldn't find the postconf -n output at that link > sorry, correct link for postconf -n: http://termbin.com/w509 It doesn't look like "local" is even attempting to open the mailbox_transport_maps file. That's a good indication that the config file you

Access table lookup not as expected

2016-12-23 Thread Dominic Raferd
Obviously I am being thick but can someone explain why this does not work as I would expect. Basically email addresses are not matching against domain names in a hashed database: $ postconf|grep "^parent_domain_matches_subdomains.*smtpd_access_maps" >/dev/null && echo "domain.tld should match

Re: Postfix delivery problem

2016-12-23 Thread G. Schlisio
Am 23.12.2016 um 15:11 schrieb John Fawcett: > On 12/23/2016 01:56 PM, G. Schlisio wrote: >>> Couldn't find the postconf -n output at that link >> sorry, correct link for postconf -n: http://termbin.com/w509 > > It doesn't look like "local" is even attempting to open the > mailbox_transport_maps

Re: Access table lookup not as expected

2016-12-23 Thread John Fawcett
On 12/23/2016 03:13 PM, Dominic Raferd wrote: > Obviously I am being thick but can someone explain why this does not > work as I would expect. Basically email addresses are not matching > against domain names in a hashed database: > > $ postconf|grep "^parent_domain_matches_subdomains.*smtpd_access

Re: Make postfix log to show how sender rewriting happens

2016-12-23 Thread /dev/rob0
> On Tue, Dec 20, 2016 at 7:35 PM, Viktor Dukhovni > wrote: > > > > > On Dec 20, 2016, at 12:53 AM, Burn Zero > > > wrote: > > > > > > As you can see the orig_to parameter shows the original id to > > > which the email was sent and the to= parameter explains the > > > rewritten email id. I ca

Re: Access table lookup not as expected

2016-12-23 Thread Dominic Raferd
On 23/12/2016 14:27, John Fawcett wrote: On 12/23/2016 03:13 PM, Dominic Raferd wrote: Obviously I am being thick but can someone explain why this does not work as I would expect. Basically email addresses are not matching against domain names in a hashed database: $ postconf|grep "^parent_doma

Re: Postfix delivery problem

2016-12-23 Thread John Fawcett
On 12/23/2016 03:20 PM, G. Schlisio wrote: > Am 23.12.2016 um 15:11 schrieb John Fawcett: >> On 12/23/2016 01:56 PM, G. Schlisio wrote: Couldn't find the postconf -n output at that link >>> sorry, correct link for postconf -n: http://termbin.com/w509 >> It doesn't look like "local" is even att

Re: Postfix delivery problem

2016-12-23 Thread G. Schlisio
> It was worth checking the obvious to exclude it. > > I suspect that one of the system libraries used by the .forward > mechanism has been impacted by your upgrade. > > If you don't need to use .forward files you might try setting > > forward_path = > > in main.cf and restart postfix. If that

Re: Postfix delivery problem

2016-12-23 Thread John Fawcett
On 12/23/2016 03:56 PM, G. Schlisio wrote: >> It was worth checking the obvious to exclude it. >> >> I suspect that one of the system libraries used by the .forward >> mechanism has been impacted by your upgrade. >> >> If you don't need to use .forward files you might try setting >> >> forward_path

Re: Access table lookup not as expected

2016-12-23 Thread John Fawcett
On 12/23/2016 03:34 PM, Dominic Raferd wrote: > On 23/12/2016 14:27, John Fawcett wrote: >> On 12/23/2016 03:13 PM, Dominic Raferd wrote: >>> Obviously I am being thick but can someone explain why this does not >>> work as I would expect. Basically email addresses are not matching >>> against domai

Re: request improved logging for postfix.

2016-12-23 Thread Bill Cole
On 21 Dec 2016, at 5:42, L.P.H. van Belle wrote: Hello Noel, Would you please stop say that im labeling.. im not. Sorry im so bad in explaining things in english. I just trying to explain something based on what i did read here: http://www.postfix.org/postconf.5.html#reject_unknown_helo_hostna

Re: Access table lookup not as expected

2016-12-23 Thread John Fawcett
On 12/23/2016 05:29 PM, John Fawcett wrote: > On 12/23/2016 03:34 PM, Dominic Raferd wrote: >> On 23/12/2016 14:27, John Fawcett wrote: >>> On 12/23/2016 03:13 PM, Dominic Raferd wrote: Obviously I am being thick but can someone explain why this does not work as I would expect. Basically

Re: Postfix delivery problem

2016-12-23 Thread John Fawcett
On 12/23/2016 04:29 PM, John Fawcett wrote: > On 12/23/2016 03:56 PM, G. Schlisio wrote: >>> It was worth checking the obvious to exclude it. >>> >>> I suspect that one of the system libraries used by the .forward >>> mechanism has been impacted by your upgrade. >>> >>> If you don't need to use .fo

Re: Access table lookup not as expected

2016-12-23 Thread John Fawcett
ignore the previous message it was sent in the wrong thread, apologies for the noise.

Re: Postfix delivery problem

2016-12-23 Thread G. Schlisio
> Georg > > Replying to my own post: on re-reading the specification, it looks clear > > "On success, *getpwnam_r*() and *getpwuid_r*() return zero, and set > /*result/ to /pwd/. If no matching password record was found, these > functions return 0 and store NULL in /*result/. In case of error, an

Re: Postfix delivery problem

2016-12-23 Thread John Fawcett
On 12/23/2016 06:22 PM, G. Schlisio wrote: >> Georg >> >> Replying to my own post: on re-reading the specification, it looks clear >> >> "On success, *getpwnam_r*() and *getpwuid_r*() return zero, and set >> /*result/ to /pwd/. If no matching password record was found, these >> functions return 0 a

Re: Postfix delivery problem

2016-12-23 Thread Wietse Venema
John Fawcett: > >> "On success, *getpwnam_r*() and *getpwuid_r*() return zero, and set > >> /*result/ to /pwd/. If no matching password record was found, these > >> functions return 0 and store NULL in /*result/. In case of error, an > >> error number is returned, and NULL is stored in /*result/. "

Re: Postfix delivery problem

2016-12-23 Thread John Fawcett
On 12/24/2016 01:19 AM, Wietse Venema wrote: > John Fawcett: "On success, *getpwnam_r*() and *getpwuid_r*() return zero, and set /*result/ to /pwd/. If no matching password record was found, these functions return 0 and store NULL in /*result/. In case of error, an error number