LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Setup my postfix server to relay (https://www.linuxquestions.org/questions/linux-newbie-8/setup-my-postfix-server-to-relay-911024/)

L1nuxn00b703 10-31-2011 03:19 AM

Setup my postfix server to relay
 
Hi all,
I'm trying set up my home sendmail server (VM) to connect to my postfix server (VPS) to send emails. I've set up my postfix server and its already sending and receiving emails (clamd, smtp auth, spamassasin, dovecot already setup)


HOME
sendmail server VM ------>INTERNET------>Postfix server------->


Can someone someone please help? THanks.

Toggan 11-01-2011 10:27 AM

To do this, you will need to configure your home mail server's "smart host" in sendmail.

This will be done in your sendmail.cf file. Which on my CentOS server is /etc/mail/sendmail.cf, you may want to use locate or find to figure out where it is on your machine. One in that file, you will see a line that starts with DS. Modify this line to be DS and then the fully qualified domain name of your Postfix server

Example:

Code:

# "Smart" relay host (may be null)
DSsmtp.yourdomain.com


L1nuxn00b703 11-01-2011 11:37 PM

Thanks for the reply but I actually got it working. I did alot of googling around but found this great link:

http://www.linuxha.com/other/sendmail/index.html

Thanks again!


All times are GMT -5. The time now is 04:30 PM.