LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 0
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
 
Old 05-05-2007, 03:45 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,275

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


Reply


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 11:06 PM
How do I send daily clamav scan logs to my work e-mail account rwtreke SUSE / openSUSE 3 05-20-2005 01:05 PM
Server does'nt send mail until shutdown and LAN can't send or receive. Wolfy Linux - Networking 0 08-02-2004 08:31 PM
Post fix can recv mail from outside but cant send. luvonmik Linux - Networking 1 03-30-2004 12:07 PM
mail -a would not work to send e-mail attachment saavik Linux - Networking 3 12-18-2003 10:33 AM


All times are GMT -5. The time now is 02:58 AM.

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