LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 09-13-2004, 08:46 AM   #1
Wynand1
Member
 
Registered: Mar 2004
Posts: 121

Rep: Reputation: 15
Arrow Change user@host.domain to user@domain


Hi,

I'm using webmin to setup a mail server (sendmail). Currently our email addresses look like this : root@crew-ex.crewtech.co.za and we would like it too look like this root@crewtech.co.za.

How do I change this in webmin.

i.e we want not user@host.domain.

Thanks
 
Old 09-13-2004, 08:48 AM   #2
r0b0
Member
 
Registered: Aug 2004
Location: Europe
Posts: 600

Rep: Reputation: 49
This is not a server setting, rather a setting of your e-mail client software. Set your e-mail address to yourname@crewtech.co.za in your e-mail client.
And configure sendmail to accept e-mail sent to crewtech.co.za for local delivery (I'm not a sendmail expert, don't know how).
 
Old 09-13-2004, 09:33 AM   #3
Satriani
Member
 
Registered: Mar 2003
Location: The Netherlands
Distribution: Red Hat 7.3, Red Hat 9, Solaris8, Slackware 10, Slax on USB, AIX, FreeBSD, WinXP, AIX, Ubuntu
Posts: 418

Rep: Reputation: 30
You can also use a feature in sendmail:

MASQ_ENVELOPE and MASQUARADE

http://www.sendmail.org/m4/masquerading.html
 
Old 09-13-2004, 09:37 AM   #4
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Re: Change user@host.domain to user@domain

Quote:
Originally posted by Wynand1
Hi,

I'm using webmin to setup a mail server (sendmail). Currently our email addresses look like this : root@crew-ex.crewtech.co.za and we would like it too look like this root@crewtech.co.za.

How do I change this in webmin.

i.e we want not user@host.domain.

Thanks
Personally, I don't use webmin. Nothing against it, but it has never supported setting all the sendmail specific parameters to "properly" configure the MTA.

If webmin supports setting "masquerade_as", then this would be the setting to change. If not... then adding:

MASQUERADE_AS(`mydomain.com')dnl

to your sendmail.mc file will fix your problem. Note: You must rebuild your sendmail.cf file after editing sendmail.mc using m4 or whatever tools your linux distro supplies (you never stated that in your post).
 
Old 09-13-2004, 11:35 AM   #5
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 30
Wynand1

Add crewtech.co.za to /etc/mail/local-host-names like this

/etc/mail/local-host-names
# local-host-names - include all aliases for your machine here.
crewtech.co.za

Restart Sendmail, should be good to go

Pete
 
Old 09-13-2004, 12:29 PM   #6
scowles
Member
 
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
Quote:
Originally posted by Pete M
Wynand1

Add crewtech.co.za to /etc/mail/local-host-names like this

/etc/mail/local-host-names
# local-host-names - include all aliases for your machine here.
crewtech.co.za

Restart Sendmail, should be good to go

Pete
Funny how the wording of ones post can be interpreted differently. I interpreted the OP question as referring to how to configure sendmail to change the mail from address for non fully qualified e-mail address i.e. masquerade - you the recipient address. i.e. what domains sendmail considers local (hand off to procmail)

Either way, I think he's covered
 
Old 09-13-2004, 03:32 PM   #7
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 30
Hi scowles

From Wynand1's first post I assumed from the email address 'root@crew-ex.crewtech.co.za' that 'crew-ex' is the hostname of his machine and 'crewtech.co.za' his FQDN, which does in fact resolve via DNS, so the easiest way to send mail as 'user@crewtech.co.za' is to add 'crewtech.co.za' to /etc/mail/local-host-names which makes Sendmail responsible for this domain

Quote:
i.e we want not user@host.domain
MASQUERADE_AS may well work for him, just never used it for this purpose

Pete
 
Old 09-13-2004, 11:56 PM   #8
Wynand1
Member
 
Registered: Mar 2004
Posts: 121

Original Poster
Rep: Reputation: 15
Thanks for all the input
 
  


Reply


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
Domain User Access Rights engnet Linux - Security 0 10-30-2005 01:40 AM
Joined Domain, can't login as domain user mikeyt_333 Linux - Networking 12 08-26-2005 08:25 AM
Sendmail sending as host.domain.com, i want it to be from just domain.com. PlatinumRik Linux - Software 5 10-07-2004 04:32 PM
Authentication via user@domain.com TechBrat Linux - Security 8 01-10-2004 04:24 PM
Samba with Domain User accounts anthjaz Linux - Networking 13 11-20-2003 09:49 AM


All times are GMT -5. The time now is 06:33 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration