From: Israel Garcia on
On Fri, Apr 30, 2010 at 1:14 PM, Wietse Venema <wietse(a)porcupine.org> wrote:
>> HI Brian,
>>
>> How can I change this to a map file?
>
> For an example, see: http://www.postfix.org/SASL_README.html#client_sasl
>
>        Wietse
>

DOne, here's my last configuration:

postconf -n:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
header_size_limit = 4096000
inet_interfaces = localhost
inet_protocols = ipv4
mailbox_size_limit = 0
mydestination = server.domain, localhost.domain, , localhost,
xx.xx.xx.x/xx reject
myhostname = server.domain
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost = [relayhost]:587
smtp_host_lookup = native,dns
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_security_level = may
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
transport_maps = hash:/etc/postfix/transport

/etc/postfix/sasl_passwd file:
[relayhost]:587 username:passwd

transport file:
domain1 :[host1]

All mail is sent through relayhost with authentication, except for *@domain1.

Thanks once more Wietse..

--
Regards;
Israel Garcia