Link to home
Start Free TrialLog in
Avatar of mw-expert
mw-expert

asked on

Setting up Postfix to EXCLUSIVELY use a remote SMTP server, for sending mail ... on Redhat 9


Hi guys,

I'm using Redhat Linux 9.0 - with POSTFIX. I'm certainly not a Linux GURU.

My system is correctly setup and I can send and receive emails (from/to outside world)

I would like to set up my postfix to EXCLUSIVELY use an outside server for sending mail (SMTP)
All client applications would send mails to my server, just as usual,  and Postfix would relay them
using the outside SMTP server ...

My EXTERNAL smtp server requires authentication with user/pass.

Which config files do I need to update?  Please, provide max details, if required.

Thanks!

Avatar of collins23
collins23

put this line in /etc/postfix/main.cf                    

> relayhost = [external_host]
> smtp_sasl_auth_enable = yes
> smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
> smtp_sasl_security_options = noanonymous
>smtp_sasl_security_options =

relayhost is the host to which you are forwading all mail

sasl_password should contain

dom.ain        username:password
ASKER CERTIFIED SOLUTION
Avatar of collins23
collins23

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial