configure sendmail to append domain


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users configure sendmail to append domain
# 1  
Old 06-02-2008
configure sendmail to append domain

I am running redhat enterprise 4 with sendmail version 8.13. I am trying to configure sendmail to append the domain to localpart.

For example

If i send an email to “username”. I want sendmail to append the “username” with @bbl.com

I tried modifying the following in /etc/mail/sendmail.mc

MASQUERADE_AS(bbl.com)dnl
MASQUERADE_DOMAIN(bbl.com)dnl

Then issue
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Restarted sendmail

Unfortunately the above modification did not work. At the moment when I send an email it changes the “To address field” to “username@hostname.domain.com” but I would like to be “username@domain.com”

What am I doing wrong? Can you help? Please

Last edited by hassan1; 06-02-2008 at 10:39 AM.. Reason: correction
# 2  
Old 06-03-2008
You want "canonical name", not "masquerading". My Sendmail skills are too rusty to help you with the details but quick googling suggests $j might have something to do with that.
# 3  
Old 06-03-2008
Quote:
Originally Posted by hassan1
I am running redhat enterprise 4 with sendmail version 8.13. I am trying to configure sendmail to append the domain to localpart.

For example

If i send an email to “username”. I want sendmail to append the “username” with @bbl.com

I tried modifying the following in /etc/mail/sendmail.mc

MASQUERADE_AS(bbl.com)dnl
MASQUERADE_DOMAIN(bbl.com)dnl

Then issue
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

Restarted sendmail

Unfortunately the above modification did not work. At the moment when I send an email it changes the “To address field” to “username@hostname.domain.com” but I would like to be “username@domain.com”

What am I doing wrong? Can you help? Please
Hi,
Try MASQUERADE_AS and FEATURE masquerade_envelope in both sendmail.mc and submit.mc ... Hope that helps
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Sendmail with wrong domain name

Not sure if this is the right place so I'm sorry if its not. I am setting up a new RHE server and trying to get sendmail to work correctly. Currently when I test sendmail I will recieve an email from (username@servermydomain.com.com) I have scoured the sendmail.cf and cannot find this anywhere.... (2 Replies)
Discussion started by: thumbelina
2 Replies

2. Red Hat

Sendmail not delivering to own domain

I can send off network but can not send to anyone on network. SitRep is this the legacy mail system at work is setup as 2 servers, one is the outbound server and /etc/aliases has a list of users to deliver the mail to another server. for this instance we will call the 192.168.1.9(outgoing)... (4 Replies)
Discussion started by: sycomix
4 Replies

3. UNIX for Dummies Questions & Answers

Configure sendmail to Only send mail to one domain

On both Solaris 10 and RHEL, we would like to configure sendmail in such a way that the email sent from the server should only go to a particular domain. For eg. We want our server to ONLY send the mail to <user_name>@abc.com. All other domains should be blocked/restricted. The server should not... (0 Replies)
Discussion started by: sk2code
0 Replies

4. UNIX for Advanced & Expert Users

Sendmail virtual domain problem

For a long time we have successfully been running mail servers using sendmail+ClamAV+clamav-milter+SpamAssassin+smf_spamd-milter on Solaris both as a mail server for several domains with local users getting their mail using POP and IMAP and also as a message filtering relay for other domains where... (2 Replies)
Discussion started by: andyt22
2 Replies

5. UNIX for Advanced & Expert Users

Configure a domain in Solaris.

People i have 2 solaris 10 A webserver and a mailserver. What i need to do is to send a mail inside de webserver to the domain company In the webserver When i use mailx -v -s Prueba me@gmail.com This is ok and the mail is send. But when i try to send a mail to someone inside de company ... (4 Replies)
Discussion started by: enkei17
4 Replies

6. Shell Programming and Scripting

Sendmail: Remove domain name from From mail id

While sending mails using sendmail, the domain name is getting appended to the from id. My requirement is not to have that domain name in the From mail id. Could anyone help me on this? I am using the below command: cat t|/usr/lib/sendmail -f"Admin" user1@domain1.com (0 Replies)
Discussion started by: skar_a
0 Replies

7. HP-UX

Configuring sendmail to modify the domain name

Hi, I would like to change the domain name using sendmail. For example, currently mails are sent like user@domain1.com I would like to change it to user@domain2.com How this can be done from HP-UX? Your help is highly appreciated. Thanks in advance. (0 Replies)
Discussion started by: smuthuvel
0 Replies

8. AIX

sendmail only sends emails to its own domain

Hi, folks! I have a problem with an AIX 5.3 server running sendmail where it is able to send messages within its own domain just fine. This is being used for a web email service portion of a web site. However, when it attempts to send email to any other domain -- i.e., hotmail.com -- it... (3 Replies)
Discussion started by: jjwood64
3 Replies

9. UNIX for Advanced & Expert Users

blocking sendmail from domain

hi i edited the /etc/mail/access files with the line "yahoo.com REJECT", afterwhich i cannot send out files to the yahoo.com domain. :mad: can someone advise on how to go about configuring such that i am able to send mail out to yahoo.com BUT block INCOMING mail from yahoo.com :confused: i... (0 Replies)
Discussion started by: legato
0 Replies

10. UNIX for Dummies Questions & Answers

Using Sendmail for multiple domain names

Hi, We're an internet company with several domain names. Our mail server was originally set up to deal with xxx@domain1.com email addresses which works fine. The problem I have is that we're now also using a domain2.com, and sales@domain1.com isn't the same as sales@domain2.com. I've added... (1 Reply)
Discussion started by: captainash
1 Replies
Login or Register to Ask a Question