Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-05-2007, 10:32 AM   #1
LQ Newbie
Registered: May 2007
Posts: 1

Rep: Reputation: 0
send mail not work, how to fix it


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,

Old 05-05-2007, 02:45 PM   #2
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
with the linux proxi, backend pop3 mail client can not receive mail and send mail rubin823 Linux - Networking 0 12-21-2006 10:06 PM
How do I send daily clamav scan logs to my work e-mail account rwtreke SUSE / openSUSE 3 05-20-2005 12:05 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 07:31 PM
Post fix can recv mail from outside but cant send. luvonmik Linux - Networking 1 03-30-2004 11:07 AM
mail -a would not work to send e-mail attachment saavik Linux - Networking 3 12-18-2003 09:33 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:28 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration