LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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, 10: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, 02:45 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,290

Rep: Reputation: 378Reputation: 378Reputation: 378Reputation: 378
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



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:43 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
Open Source Consulting | Domain Registration