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 way to authenticate against Postfix through the crypted password. By the way, i use pam to get to the SQL backend. Sthanks again, On Sat, Mar 19, 2016 at 3:28 PM, Wietse Venema <wie...@porcupine.org> wrote: > 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. > > 1) user@domain (complete sender address) > 2) user > 3) @domain > > The lookup result is a list of SASL login names. > > http://www.postfix.org/postconf.5.html#smtpd_sender_login_maps > >> *Authenticate against Postfix through the crypted password? I mean, if > > The Postfix SMTP server will not search smtpd_sender_login_maps > when the client is not authenticated. > > Wietse -- Pau Peris Rodriguez Chief Executive Officer (CEO) Tel: 669650292 C/Balmes 211, Principal Segunda Barcelona 08006 http://www.webeloping.es Aquest correu electrònic conté informació de caràcter confidencial dirigida exclusivament al seu/s destinatari/s en còpia present. Tant mateix, queda prohibida la seva divulgació, copia o distribució a tercers sense prèvia autorització escrita per part de Pau Peris Rodriguez. En cas d'haver rebut aquesta informació per error, es demana que es notifiqui immediatament d'aquesta circumstancia mitjançant la direcció electrònica del emissor.