|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
From: Alejandro Facultad (alejandro_facultad
yahoo.com.ar)
Date: Thu Jan 17 2008 - 12:27:37 CST
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Noel Jones escribió:
> Alejandro Facultad wrote:
>> I'm using Debian+Postfix 2.3.8 as a mail server. This mail server is
>> connected to Internet but just for two mail domains from my company I
>> need to send mail to a mail server with private IP located in the
>> other side of our LAN. So I need to fix a static route to that mail
>> server which support the mail domains I want to reach.
>>
>> Also when I send mail to that mail server in the other side of the
>> LAN, it ask me for user+password.
>>
>> Where can I set up these features in Postfix ???
>>
>> Really thanks
>>
>> Alejandro
>
> Define the mail server to use for a specific domain by using a
> transport_maps entry.
> http://www.postfix.org/postconf.5.html#transport_maps
>
> # main.cf
> transport_maps = hash:/etc/postfix/transport
>
> # transport
> lan.example.com relay:[10.0.0.10]
>
>
> To log in with a username/password, your postfix must be built with
> SASL support, then you can set the user/pass to use for that server.
> http://www.postfix.org/SASL_README.html#client_sasl
>
Thnks Noel, so I need to download the relative Debian packages to
support Postfix SASL authentication and then just enabling the SASL
authenticaction in the Postfix SMTP client like tells the URL you give me:
/etc/postfix/main.cf <postconf.5.html>:
smtp_sasl_auth_enable <postconf.5.html#smtp_sasl_auth_enable> = yes
smtp_sasl_password_maps <postconf.5.html#smtp_sasl_password_maps> =
hash:/etc/postfix/sasl_passwd
smtp_sasl_type <postconf.5.html#smtp_sasl_type> = cyrus
relayhost <postconf.5.html#relayhost> = [mail.myisp.net]
# Alternative form:
# relayhost <postconf.5.html#relayhost> = [mail.myisp.net]:submission
/etc/postfix/sasl_passwd:
[mail.myisp.net] username:password
[mail.myisp.net]:submission username:password
My new questions are:
1) But what happens if the mai server that Postfix authenticate to it's
not Cyrus as above ?? Suppose it's an Exchange or Exim ???
2) Do I have to enable SASL authentication in the Postfix SMTP server
too ???
Specal thanks
Alejandro
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]