Tom?s Crespo:
> Now, I getting this with Exim with these lines:
>
> cram_md5:
>   driver = cram_md5
>   public_name = CRAM-MD5
>   client_name   = $sender_address
>   client_secret = samepasswordforeveryone
>
> I?ve read about sender_dependent_relayhost_maps in Postfix, but I don?t want
> to manage a list with all users, and have to add or remove when a new user
> is created or deleted.
>
> I want postfix use a variable (sender address) as login and always the same
> password to authenticate with my ISP SMTP.
>
> Is that posible??

Use a regular expression table.

/etc/postfix/main.cf:
   smtp_sasl_password_maps = pcre:/etc/postfix/sasl_pass
   smtp_sender_dependent_authentication = yes

/etc/postfix/sasl_pass:
   /.+/ ($1):samepasswordforeveryone

Be sure to "chmod 400 /etc/postfix/sasl_pass".

References:
http://www.postfix.org/postconf.5.html#smtp_sasl_password_maps
http://www.postfix.org/postconf.5.html#smtp_sender_dependent_authentication
http://www.postfix.org/pcre_table.5.html

        Wietse

Reply via email to