Re: Right way to force autresponder script to authenticate against postfix

2016-03-21 Thread Pau Peris
Hi Wietse, thanks a lot for your replies. I've integrated a custom vacation script (similar to the famous vacation.pl which comes with postfixadmin). So users can enable vacation/atoreply in roundcube for example, once they check vacation/autoreply an new alias is created inside aliases with a sp

Re: Right way to force autresponder script to authenticate against postfix

2016-03-21 Thread Wietse Venema
Pau Peris: > By your reply should i assume it's not possible to pass extra > paramaters to the SQL query sentence? The Postfix SMTP smtpd_sender_login_maps feature makes the following queries: 1) user@domain (complete sender address) 2) user 3) @domain Those Postfix queries contain n

Re: Right way to force autresponder script to authenticate against postfix

2016-03-21 Thread Pau Peris
Hi Wietse, thanks a lot for the reply. I undestand how sender login maps work as i implemented this feature about 2 years ago and it looks to be working without issues. By your reply should i assume it's not possible to pass extra paramaters to the SQL query sentence? Also, i suppose there's no

Re: Right way to force autresponder script to authenticate against postfix

2016-03-19 Thread Wietse Venema
Pau Peris: > Hi, > > do someone know if it's possible to: > > * Pass as parameter to smtpd_sender_login_maps = > proxy:mysql:/etc/postfix/mysql_sender_login_maps.cf so i can use this > parameter inside the query? The Postfix SMTP server makes the following queries and stops at the first match.

Re: Right way to force autresponder script to authenticate against postfix

2016-03-19 Thread Pau Peris
Hi, do someone know if it's possible to: * Pass as parameter to smtpd_sender_login_maps = proxy:mysql:/etc/postfix/mysql_sender_login_maps.cf so i can use this parameter inside the query? *Authenticate against Postfix through the crypted password? I mean, if know a cryped password and it semail

Re: Right way to force autresponder script to authenticate against postfix

2016-03-18 Thread Pau Peris
Hello again, as i didn't work on Postfix over the last year i've been digging around the config and the manuals at postfix.org before choosing any of the previously exposed options. By now, i was trying to go for option two so i created a specific user for each of the domain managed by Postfix mt

Re: Right way to force autresponder script to authenticate against postfix

2016-03-09 Thread Pau Peris
Ok, thanks!! On Tue, Mar 8, 2016 at 8:36 PM, Wietse Venema wrote: > The third option was: > - submit autoreplies with /usr/sbin/sendmail instead of SMTP. > > Pau Peris: >> If i'd go by the third option, sending through sendmail instead of >> SMTP, i would loose the headers automatically set by Po

Re: Right way to force autresponder script to authenticate against postfix

2016-03-08 Thread Wietse Venema
The third option was: - submit autoreplies with /usr/sbin/sendmail instead of SMTP. Pau Peris: > If i'd go by the third option, sending through sendmail instead of > SMTP, i would loose the headers automatically set by Postfix. Wietse: > Where did you get that idea from? Pau Peris: > I'm sorry,

Re: Right way to force autresponder script to authenticate against postfix

2016-03-08 Thread Pau Peris
I'm sorry, i think i completely missunderstood option 3. I thought using sendmail would bypass Postfix completely. I assume this is wrong and it will still make use of Postfix mta? So it makes no difference on using sendmail or SMTP at "application/programming language" level? Thanks! On Tue, Mar

Re: Right way to force autresponder script to authenticate against postfix

2016-03-08 Thread Wietse Venema
Pau Peris: > If i'd go by the third option, sending through sendmail instead of > SMTP, i would loose the headers automatically set by Postfix. Where did you get that idea from? Wietse

Re: Right way to force autresponder script to authenticate against postfix

2016-03-08 Thread Pau Peris
Hi Wietse, thanks a lot for the list of ways to go. I'm worried about the security risks of adding adding permit_mynetworks to smtpd_recipient_restrictions What do you think about this? Would you see it as a security flaw? I could easily modify de perl script to provide authentication against Po

Re: Right way to force autresponder script to authenticate against postfix

2016-03-08 Thread Wietse Venema
Pau Peris: > Hi Wietse, > > as i stated in the first message this is why postfix is rejecting, > right? Yes. I suppose this is not what you want. The choices are - add permit_mynetworks in smtpd_recipient_restrictions - add SASL authentication to the Perl script (which is outside the help that

Re: Right way to force autresponder script to authenticate against postfix

2016-03-08 Thread Pau Peris
Hi Wietse, as i stated in the first message this is why postfix is rejecting, right? I mean, i've setted reject_unauth_destination and here i'm trying to send an email to someone who's mail isn't managed by me and so my postfix mta isn't the final destination, is it right? So if i'm right i'm not

Re: Right way to force autresponder script to authenticate against postfix

2016-03-08 Thread Wietse Venema
Pau Peris: > Hi Wietse, > > thank again for your help. Here goes the info, it looks good but > obviously it isn't as long as vacation.pl keeps getting (554 5.7.1 : > Relay access denied). > > postconf mynetworks smtpd_recipient_restrictions smtpd_relay_restrictions > mynetworks = 127.0.0.1/32 91.1

Re: Right way to force autresponder script to authenticate against postfix

2016-03-08 Thread Pau Peris
Hi Wietse, thank again for your help. Here goes the info, it looks good but obviously it isn't as long as vacation.pl keeps getting (554 5.7.1 : Relay access denied). postconf mynetworks smtpd_recipient_restrictions smtpd_relay_restrictions mynetworks = 127.0.0.1/32 91.121.120.208/32 [::1]/128 [2

Re: Right way to force autresponder script to authenticate against postfix

2016-03-07 Thread Wietse Venema
Pau Peris: > Hi Wietse, > > Thanks a lot for you reply but I already added those addresses seven > first configured Postfix but my restrictions require to authenticate wh3n > sending emails to end destinations which are not local host. According to this: smtpd_relay_restrictions =

Re: Right way to force autresponder script to authenticate against postfix

2016-03-07 Thread Pau Peris
Hi Wietse, Thanks a lot for you reply but I already added those addresses seven first configured Postfix but my restrictions require to authenticate wh3n sending emails to end destinations which are not local host. I'll try to paste my Postfix confirm tomorrow to see I'd there's something I sell

Re: Right way to force autresponder script to authenticate against postfix

2016-03-07 Thread Wietse Venema
Pau Peris: > smtpd_relay_restrictions = > permit_mynetworks, > permit_sasl_authenticated, > reject_unauth_destination > == 2016/03/07 13:20:16 == > Mail::Sendmail said :Mail::Sendmail v. 0.79_16 - Mon M