LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-04-2003, 08:54 AM   #1
bluestorm
LQ Newbie
 
Registered: Sep 2003
Location: london, uk
Distribution: redhat
Posts: 16

Rep: Reputation: 0
Question help with configuring sendmail


how can i make sendmail masquerade its sent emails from something other than nobody@localhost.localdomain?

basically, i have a php script on the same machine that is sending out emails to people with the wrong address.

please help!!!
 
Old 12-05-2003, 10:52 AM   #2
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
look in sendmail.mc for "masquerade as"
 
Old 12-05-2003, 11:11 AM   #3
bluestorm
LQ Newbie
 
Registered: Sep 2003
Location: london, uk
Distribution: redhat
Posts: 16

Original Poster
Rep: Reputation: 0
thanks for replying,

checked the file, no "masquerade as" but i did find this line at the bottom of the file "Cwlocalhost.localdomain". could this be where it's getting localhost from?


DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
dnl NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl a kernel patch
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not have 24x7 DNS do need this.
FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`relay_based_on_MX')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
Cwlocalhost.localdomain
 
Old 12-05-2003, 11:17 AM   #4
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
don't you have that:

dnl #
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
MASQUERADE_AS(`domain.com')dnl
 
Old 12-05-2003, 11:26 AM   #5
bluestorm
LQ Newbie
 
Registered: Sep 2003
Location: london, uk
Distribution: redhat
Posts: 16

Original Poster
Rep: Reputation: 0
nope, nothing like that in my sendmail.mc file.

i using an rpm install (reports version as 4.0.4).
 
Old 12-05-2003, 11:30 AM   #6
ugob
Member
 
Registered: Nov 2003
Distribution: RH, Fedora, Debian, Knoppix
Posts: 436

Rep: Reputation: 31
I don't know what to say then, else than putting in your file what i put in my last post and regenerate the sendmail.cf file
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Configuring Sendmail spaaarky21 Fedora 5 08-27-2005 07:53 PM
configuring sendmail.. piyushiitk Linux - Newbie 2 08-20-2005 11:40 AM
need help configuring sendmail blish_blash Linux - Software 0 10-29-2004 08:38 AM
Configuring sendmail dienerk Linux - General 1 10-23-2004 08:28 PM
configuring sendmail artur Linux - Software 1 04-04-2002 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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