postdrop user maps

2019-01-12 Thread Pali Rohár
Hello! Is there any option for postdrop which may be equivalent to smtpd_sender_login_maps option used for sasl? I have postfix submission configured with -o smtpd_sender_restrictions=reject_sender_login_mismatch,permit -o smtpd_sender_login_maps=hash:/my/file to ensure that authenticated user ca

Re: postdrop user maps

2019-01-12 Thread Viktor Dukhovni
> On Jan 12, 2019, at 1:50 PM, Pali Rohár wrote: > > Is there any option for postdrop which may be equivalent to > smtpd_sender_login_maps option used for sasl? No, because there's no workable way to reject local submission, so all you can do is accept and perhaps rewrite. Also any such mechani

Re: postdrop user maps

2019-01-12 Thread Pali Rohár
On Saturday 12 January 2019 16:48:24 Viktor Dukhovni wrote: > > On Jan 12, 2019, at 1:50 PM, Pali Rohár wrote: > > > > Is there any option for postdrop which may be equivalent to > > smtpd_sender_login_maps option used for sasl? > > No, because there's no workable way to reject local submission,

Re: postdrop user maps

2019-01-12 Thread Viktor Dukhovni
> On Jan 12, 2019, at 5:31 PM, Pali Rohár wrote: > > If you mean external content filters, I wanted to avoid using them. Sometimes you need to bring out the sledgehammer. > And it is really possible for milter to get unix user who invoked > postdrop or sendmail wrapper? If yes, how? Because

Re: postdrop user maps

2019-01-12 Thread Pali Rohár
On Saturday 12 January 2019 17:38:23 Viktor Dukhovni wrote: > > On Jan 12, 2019, at 5:31 PM, Pali Rohár wrote: > > > > If you mean external content filters, I wanted to avoid using them. > > Sometimes you need to bring out the sledgehammer. > > > And it is really possible for milter to get unix

Re: postdrop user maps

2019-01-12 Thread Viktor Dukhovni
> On Jan 12, 2019, at 6:02 PM, Pali Rohár wrote: > > Meanwhile I decoded postdrop protocol and come up with more easier > solution: > > I renamed postdrop binary to postdrop.real and implemented simple > postdrop wrapper which reads stdin, injects "R" command and pass it to > postdrop.real binar

Re: postdrop user maps

2019-01-12 Thread Pali Rohár
On Saturday 12 January 2019 18:14:39 Viktor Dukhovni wrote: > > On Jan 12, 2019, at 6:02 PM, Pali Rohár wrote: > > > > Meanwhile I decoded postdrop protocol and come up with more easier > > solution: > > > > I renamed postdrop binary to postdrop.real and implemented simple > > postdrop wrapper w

Re: postdrop user maps

2019-01-12 Thread Wietse Venema
Pali Roh?r: > Meanwhile I decoded postdrop protocol and come up with more easier > solution: That is an internal protocol. Programs that depend on this are NOT SUPPORTED and will break. Wietse

Re: postdrop user maps

2019-01-12 Thread Wietse Venema
Wietse Venema: > Pali Roh?r: > > Meanwhile I decoded postdrop protocol and come up with more easier > > solution: > > That is an internal protocol. Programs that depend on this > are NOT SUPPORTED and will break. Why not add the extra recipient on the SENDMAIL command line? Example: install this

Re: postdrop user maps

2019-01-13 Thread Pali Rohár
On Saturday 12 January 2019 18:55:32 Wietse Venema wrote: > Wietse Venema: > > Pali Roh?r: > > > Meanwhile I decoded postdrop protocol and come up with more easier > > > solution: > > > > That is an internal protocol. Programs that depend on this > > are NOT SUPPORTED and will break. > > Why not

Re: postdrop user maps

2019-01-13 Thread Wietse Venema
Pali Roh?r: > > Example: install this as /usr/sbin/sendmail. > > > > #!/bin/sh > > exec /usr/sbin/sendmail.real "$@" ex...@example.com > > > > Why tinker with internal protocols, when you can use > > documented features? > > Hm... that you for a hint. This wrapper is easier to implement

Re: postdrop user maps

2019-01-13 Thread Pali Rohár
On Sunday 13 January 2019 11:32:33 Wietse Venema wrote: > Pali Roh?r: > > > Example: install this as /usr/sbin/sendmail. > > > > > > #!/bin/sh > > > exec /usr/sbin/sendmail.real "$@" ex...@example.com > > > > > > Why tinker with internal protocols, when you can use > > > documented featur