LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   send mail not work, how to fix it (https://www.linuxquestions.org/questions/linux-newbie-8/send-mail-not-work-how-to-fix-it-551506/)

cyvong 05-05-2007 10:32 AM

send mail not work, how to fix it
 
Configuration

Linux (machine A) > virtual server (machine B) > real server (machine C)

Whenever I use mail command to send a message to, say someone@otherdomain, I noted the mail command attempts to connect directly to someone@otherdomain. As a result, the message is bounced back because of an unknown user error. My expectation is that the mail should send the message to the virtual server and let the virtual server relay the message to the real server. So how to configure my Linx such that it works as what I have described?

Thank you for help,

Fred VONG

btmiller 05-05-2007 02:45 PM

I usually set sendmail up to listen locally and then set the SMARTHOST parameter in the sendmail configuration to relay through the mail gateway. If you use sendmail on the command line (as opposed to mail) I think you can use -G <gateway> to get the same effect.


All times are GMT -5. The time now is 10:34 AM.