Visit the LQ Articles and Editorials section
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-14-2003, 09:32 AM   #1
Registered: Aug 2003
Posts: 81

Rep: Reputation: 15
sendmail & Suse 8.0 & outgoing adress rewrite


i have 2 servers running. now one server should send its status-messages by mail to the other.

problem is: i need to rewrite the adresse from hostname.domain.tld to domain.tld

i already tried MASQUERADE_AS, entries in genericstabe, entries in the etc/sysconfig/mail...but nothing help

i could easily resolve this taking out the line, saying my MTA not to accept mails from non-fqdn-senders. But it's not my goal.

Does anybody have any other solution?

Old 08-14-2003, 11:08 AM   #2
Registered: Jul 2003
Distribution: Fedora 3
Posts: 133

Rep: Reputation: 15
well, i don't know about Suse 8, (i have rh9) but i assume you have the latest version of sendmail. On rh9, the default folder for most of the configs is /etc/mail, yours might be different. Mine also has a file with an extension of *.mc. You need to edit this file, either editing out the comments for MASQUERADE_AS, or adding your own. These are the lines that appear as comments in my file:

dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from
dnl #
dnl MASQUERADE_AS(`')dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
dnl FEATURE(masquerade_envelope)dnl
dnl #
dnl # masquerade not just, but @* as well
dnl #
dnl FEATURE(masquerade_entire_domain)dnl
dnl #
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
For the lines you want to use, just get rid of the starting "dnl", and add it to your file. You then need to use m4 to compile the mc file into a cf file. On my machine, it was as simpile as "m4 >". You should read the READMEs if this doesn't work. (I don't know where you should get the READMEs, I got them cuz i downloaded the source and compiled it myself)

After you have a new .cf file, (making sure it is the same name as the one you had before) and restart sendmail. Have fun
Old 09-01-2003, 01:13 AM   #3
Registered: Aug 2003
Posts: 81

Original Poster
Rep: Reputation: 15
:-) thanks a lot, helped!!!


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
Japanese canna won't work : Warning: かな漢字変&am OrganicOrange84 Debian 3 06-30-2005 02:28 PM
Phục hồi dữ liệu bị mất???, cứ pollsite General 1 06-27-2005 12:39 PM
How do I tell sendmail to use my ISP's outgoing mail server which needs name & psswrd Wolfy Linux - Networking 1 09-02-2004 03:16 AM
Sendmail outgoing "From:" header rewrite m0rl0ck Linux - Software 1 08-11-2003 02:24 PM
FYI: O'Reilly, DNS&BIND & Sendmail unSpawn Linux - Networking 3 06-06-2001 08:20 AM

All times are GMT -5. The time now is 12:04 AM.

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