?
Solved

Another sendmail problem

Posted on 1998-10-14
5
Medium Priority
?
212 Views
Last Modified: 2010-04-20
On Linux RedHat 5.1 I would like to masquerade the real email address (like me@machine_real_name.local) with my the official name of my organization (First_Last@my_organization.com).

Is this possible using linuxconf?

I can change the real hostname with the official domain name, but not the user name.

Thanks in advance.
Livio
0
Comment
Question by:livio
  • 2
  • 2
5 Comments
 
LVL 2

Expert Comment

by:canani
ID: 1638266
To masquerade your machine real name, kook for the option DM in your /etc/sendmail.cf file and change it to:

DMmy_organization.com


After that, restart your sendmail in order to changes take effect.

--

The only way i know to masquerade the first part of e-mail address is through aliases. Edit the file /etc/aliases
and insert one line per user:

user: First_Last

Or, if all users in your /etc/passwd have at least two names (first, last) you can generate this file using the commandline:

cut -f1,5 -d':' /etc/passwd | sed s,":\(.*\) .* \(.*\)$",": \1_\2", >> /etc/aliases

After that, execute the commandline:

# newaliases

You'll have also to reconfigure all your e-mail client software to the new masquerade e-mail adressesses :-/


0
 

Author Comment

by:livio
ID: 1638267
DMmy_organization.com is right, but it is only for the domain. With /etc/aliases I can create an incoming alias but not an outcoming alias.

Using the mailconf module of the linuxconf, I succed in changing the account name and domain name of the mails posted by other programs (like Eudora from windows) to the 25 port but not the user name of the localhost becouse it does not fully qualify when it send mails.

Livio
0
 
LVL 2

Expert Comment

by:canani
ID: 1638268
Well... Take a look at:
sendmail
By Bryan Costales , with Eric Allman & Neil Rickert
1st edition NOvember 1993
830 pages, ISBN 1-56592-056-2
O'Reilly & Associates, Inc.
http://www.ora.com/
0
 

Accepted Solution

by:
boingone earned 150 total points
ID: 1638269
Take a look at the book Sendmail(the bat book)from O'Reilly & Associates, Inc.

at page 262 it talk about the feature genericstable, which can change the mail address.


0
 

Author Comment

by:livio
ID: 1638270
Ok, the feature genericstable is the right one. On RedHat distribution it is a bit difficult to make changes in sendmail configuration without using LinuxConf.

Thank you.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month16 days, 16 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question