LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


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

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


hi,

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?

Cheer-io
 
Old 08-14-2003, 11:08 AM   #2
jqcaducifer
Member
 
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 sendmail.mc file:

Code:
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
dnl FEATURE(masquerade_envelope)dnl
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
dnl FEATURE(masquerade_entire_domain)dnl
dnl #
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)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 sendmail.mc > sendmail.cf". 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
mule
Member
 
Registered: Aug 2003
Posts: 81

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


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
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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