Sendmail Masquerading


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sendmail Masquerading
# 1  
Old 11-16-2006
Question Sendmail Masquerading

Hi,

I'm trying to get my mails sent from the address user@domain instead of user@hostname.domain. Should be simple masquerading configuration in sendmail config files, but this is where I fall (newbie). The sendmail.cf is not recommended for editing. There should be some kind of .mc file that you edit, then 'compile' and it changes the .cf file.

I don't have sendmail.mc file in /etc/mail so I created one with the following lines that supposed to make my masquerading successful:

MASQUERADE_AS(`alcatel.co.il)dnl
MASQUERADE_DOMAIN(`.alcatel.co.il')dnl
EXPOSED_USER(`root')dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl

But... I don't know how to compile it to sendmail.cf. m4 command is not available. HELP!!! (be specific). Thanks.

Last edited by shimpanzo; 11-17-2006 at 03:31 AM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Clarifying sendmail configuration - sendmail-client offline

Hi all, I have read about sendmail running as 2 separate process. 1 as a MSP, and the other as the real daemon or MTA. In my current configuration, the sendmail-client is disabled. Both submit.cf and sendmail.cf are left as default untouch I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies

2. Red Hat

Sendmail - Masquerading multiple domains with different addresses

Hello Friends, I am running Sendmail 8.14 on rhel6. I have one simple question regarding domain masquerading, i would want to masquerade different domains with different addresses. By that what i mean is that lets say i have 3 domains as home.com, example.com, test.com and i would want to... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

3. AIX

sendmail masquerading on AIX.

Hello all, I have a requirement wherein I need to change the "received from" address parameter for outgoing mails from an AIX server. I tried using the option to specify the "reply-to" address, still my relay server rejects the mails as the "received from" address still contains . I know,... (1 Reply)
Discussion started by: thisissouvik
1 Replies

4. UNIX for Dummies Questions & Answers

Sending mail as another user (username masquerading)

I have sendmail as the smtp server. I want that all mails sent from user1 actually appears to come from user2(also should be reflected in mail header). How can i accomplish the task by tweaking sendmail or are there any other means to do so? (4 Replies)
Discussion started by: proactiveaditya
4 Replies

5. AIX

Mutt/Sendmail Masquerading Problem on AIX 5.3

We are running Unix AIX 5.3 and I have been asked to masquerade the sender name on our email processing. We have one domain name and many users: user1@domainname user2@domainname user3@domainname We use mutt/sendmail to do our email processing. I discovered that using genericstable within... (1 Reply)
Discussion started by: FHMARTINS
1 Replies

6. IP Networking

howto start with gateway / router / masquerading

Hi there, I have only basic knowledge in Unix but I'm eager to learn. I have a new complex (for me) exercice and I have no idea how to start. I have a regular network on witch I'm trying to plug another network. Here is an image of the physical network.... (7 Replies)
Discussion started by: chebarbudo
7 Replies

7. SCO

Sendmail masquerading

I am having a problem with my sendmail configuration I have masquerading on but when I send a mail to multiple people it masquerades my email but not the others? see the sample below: From: name@vegena.net Sent: Friday, July 24, 2009 9:42 AM To: name2@atksco1.vegena.net;... (0 Replies)
Discussion started by: garycrow
0 Replies

8. IP Networking

selective masquerading

I am running Linux 2.6.20 on i686 architecture. I want to be able to masquerade different hosts on my LAN to different external interfaces. Specifically, I want one specific host to masquerade through a vpn tunnel while the other hosts simply masquerade over the regular ISP interface. I only... (4 Replies)
Discussion started by: NESter
4 Replies

9. Linux

postfix configuration issues...specifically masquerading (lack of )

postfix configuration issues...specifically masquerading (lack of ) Mail sent to our intranet arrives correctly (me@domain.com). Mail sent to our intranet arrives correctly (me@domain.com). Anything going outside does not, so my tests get rejected (me@hostname.com) :( any assistance... (5 Replies)
Discussion started by: mr_manny
5 Replies

10. IP Networking

IP Masquerading

Hello I am trying to setup a nework using IP Masquerading. I followed the instructions/ steps as follows: 1. Appropriated a multi-homed box 2. I have installed Redhat Linux 8.0 on it (base install) 3. INetwork settings eth0 192.168.0.1 netmask 255.255.255.0 eth1 a static IP my... (4 Replies)
Discussion started by: skotapal
4 Replies
Login or Register to Ask a Question
sendmail(4)							   File Formats 						       sendmail(4)

NAME
sendmail, sendmail.cf, submit.cf - sendmail configuration files SYNOPSIS
/etc/mail/sendmail.cf /etc/mail/submit.cf DESCRIPTION
The sendmail.cf and submit.cf files are the configuration files for sendmail(1M). Starting with version 8.12 of sendmail, which was shipped with version 9 of the Solaris operating system, two configuration files are used for submission and transmission of mail, instead of only sendmail.cf, as before. These are: sendmail.cf Remains the principal sendmail configuration file. Used for the Mail Transmission Agent (MTA). submit.cf Used for the Mail Submission Program (MSP). The MSP is used to submit mail messages. Unlike the MTA, it does not run as an SMTP daemon. The MSP does not require root privileges, thus the two-file model provides better security than the pre-sendmail 8.12 model, in which the MSP ran as a daemon and required root privileges. In the default sendmail configuration, sendmail uses submit.cf, as indicated in ps(1) output. In ps output, you will observe two sendmail invocations, such as the ones below: /usr/lib/sendmail -Ac -q15m /usr/lib/sendmail -bd -q15m The first indicates the use of submit.cf, with the client queue (/var/spool/clientmqueue) being checked--and, if needed, flushed--every 15 minutes. The second invocation runs sendmail as a daemon, waiting for incoming SMTP connections. As shipped, sendmail.cf and, in particular, submit.cf, are appropriate for most environments. Where a knowledgeable system administrator needs to make a change, he should use the following procedures. For sendmail.cf: 1. Change directories to the directory that contains the source files for the configuration files. # cd /etc/mail/cf/cf 2. Create a copy of the sendmail file for your system. # cp sendmail.mc `hostname`.mc 3. Edit `hostname`.mc. Make changes suitable for your system and environment. 4. Run make to generate the configuration file. # /usr/bin/make `hostname`.cf 5. Copy the newly generated file to its correct location. # cp `hostname`.cf /etc/mail/sendmail.cf 6. Restart the sendmail service. # svcadm restart sendmail You must restart sendmail for sendmail.cf file changes to take effect, as indicated in step 6. Steps 4 - 6 can be automated. See Automated Rebuilding of Configuration Files below. For submit.cf: 1. Change directories to the directory that contains the source files for the configuration files. # cd /etc/mail/cf/cf 2. Create a copy of the submit file for your system. # cp submit.mc submit-`hostname`.mc 3. Edit submit-`hostname`.mc. Make changes suitable for your system and environment. 4. Run make to generate the configuration file. # /usr/bin/make submit-`hostname`.cf 5. Copy the newly generated file to its correct location. # cp submit-`hostname`.cf /etc/mail/submit.cf You do not need to restart sendmail for changes to submit.cf to take effect. Steps 4 and 5 can be automated. See Automated Rebuilding of Configuration Files below. Enabling Access to Remote Clients The sendmail(1M) man page describes how the config/local_only property can be set to true or false to disallow or allow, respectively, access to remote clients for unmodified systems. Setting values for the following properties for the service instance svc:/network/smtp:sendmail results in automated (re)building of con- figuration files: path_to_sendmail_mc path_to_submit_mc The values for these properties should be strings which represent the path name of the .mc files referred to in steps 2 and 3 of both pro- cedures above. Recommended values are: /etc/mail/cf/cf/`hostname`.mc /etc/mail/cf/cf/submit-`hostname`.mc Each property, if set, results in the corresponding .mc file being used to (re)build the matching .cf file when the service is started. These properties persist across upgrades and patches. To prevent a patch or upgrade from clobbering your .cf file, or renaming it to .cf.old, you can set the desired properties instead. FILES
/etc/mail/cf/README Describes sendmail configuration files. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsndmr | +-----------------------------+-----------------------------+ |Interface Stability |Committed | +-----------------------------+-----------------------------+ SEE ALSO
make(1S), ps(1), sendmail(1M), svcadm(1M), attributes(5) System Administration Guide: Network Services SunOS 5.11 8 May 2008 sendmail(4)