LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 05-13-2007, 09:30 AM   #1
neocontrol
Member
 
Registered: Jul 2005
Posts: 273

Rep: Reputation: 31
sendmail - how to send mail from multiple domains?


Hi,

I have a server that I have a couple of domains on. How does one go about making email go out as differnt domains. Is that a sendmail option to send mail out? or is it a sendmail configuration thing?

THanks,

Last edited by neocontrol; 05-06-2010 at 01:38 PM.
 
Old 05-14-2007, 02:18 AM   #2
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
What process is actually sending the mail? If it's just a shell script, you can set the from address to whatever you like. If the sender is not in the trusted-users list you'll get a warning in your maillog. The following will set the mail addresses:
Code:
(
echo "To: A. User <user@recipient.domain.com>"
echo "From: Another User <sender@some.sending.domain.com>"
echo "Subject: A Subject"
echo
echo "A message."
) 2>&1 | sendmail -t
 
  


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
Outlook can not send mail to external domains fhejazi General 7 09-08-2006 02:48 PM
Configuring sendmail for multiple domains pikky2006 Linux - General 2 07-15-2006 01:30 AM
multiple domains on a single m/c for sendmail p_test Linux - Networking 1 04-26-2006 12:45 PM
Sendmail: How can I avoid some users send mail to outside domains? lordphantom82 Linux - Software 0 11-16-2004 07:23 PM
multiple domains, one sendmail sqn Linux - Networking 0 12-23-2003 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:15 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