LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 04-03-2008, 09:06 PM   #1
noir911
Member
 
Registered: Apr 2004
Posts: 682

Rep: Reputation: Disabled
sendmail woes m4 macro


I just want to setup basic sendmail for my domain nothing fancy. I been to /usr/share/sendmail/cf and created mydomain.mc file -

OSTYPE(`openbsd')
DOMAIN(generic)
DAEMON_OPTIONS(`Family=inet, Address=0.0.0.0, Name=MTA')dnl
CLIENT_OPTIONS(`Family=inet, Address=192.168.25.4')
MASQUERADE_AS(`mydomain.net')
MASQUERADE_DOMAIN_FINE(`/etc/mail/masq')
MAILER(`local')
MAILER(`smtp')

then I did m4 ../m4/cf.m4 mydomain.mc > mydomain.cf
cp mydomain.cf /etc/mail/sendmail.cf

Now when I send mail, the From: header comes as user@hostname.domain and not user@domain.com.

Could anyone give me a hand with this? Thanks.

Last edited by noir911; 04-03-2008 at 09:50 PM.
 
Old 04-05-2008, 08:54 AM   #2
bsdunix
Senior Member
 
Registered: May 2006
Distribution: BeOS, BSD, Caldera, CTOS, Debian, LFS, Mac, Mandrake, Red Hat, Slackware, Solaris, SuSE
Posts: 1,761

Rep: Reputation: 80
Typo?
Quote:
MASQUERADE_DOMAIN_FINE(`/etc/mail/masq')
shouldn't it be?
MASQUERADE_DOMAIN_FILE(`/etc/mail/masq')

I've also had to use this to fully masquerade emails:

FEATURE(`masquerade_envelope')

MASQUERADING AND RELAYING
http://www.sendmail.org/m4/masquerading_relaying.html
 
Old 04-14-2008, 09:43 PM   #3
noir911
Member
 
Registered: Apr 2004
Posts: 682

Original Poster
Rep: Reputation: Disabled
Thanks, yes that's a typo. I fixed it but that doesn't solve the original issue. Do I need to run sendmail and DNS on the same box?!
 
Old 04-16-2008, 12:39 AM   #4
madumadu
LQ Newbie
 
Registered: Feb 2008
Posts: 6

Rep: Reputation: 0
the sendmail.mc file is for compiling the changes u have done on the other files in /etc/mail. u also need to know what version of sendmail u are using( telnet "your maile server ip" 25) that will show u the version of sendmail u have, then look up the settings on the net.
 
  


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
sendmail error with excel file macro attachment tajamari Linux - Software 5 03-10-2008 06:37 AM
#defining a macro inside a macro? saravkrish Programming 1 05-24-2005 09:48 PM
sendmail woes dkw Linux - Networking 3 07-28-2004 03:40 AM
Sendmail System identity & define macro value sysxi Linux - Software 0 04-22-2004 08:57 AM
sendmail woes. nikhil93 Linux - General 2 03-29-2004 02:06 PM

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

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