HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Email from hostname (http://www.howtoforge.com/forums/showthread.php?t=1070)

ejkeebler 1st November 2005 00:51

Email from hostname
 
Ok I am still confused after reading through a few threads I thought resembled my issue.

Currently I can send and recieve email from name@server.domain.com I would like it to only be name@domain.com. Is this simply a hostname change? Or do I simply change a postfix value?

I am using Ubuntu 5.1 with, as I stated above, postfix. :(

falko 1st November 2005 09:20

How do you send the emails? With an email client such as Thunderbird or Outlook Express, with a command, from a script, etc?

till 1st November 2005 10:26

Do you use ISPConfig or have you configured your mailusers manually? Is your domain in the file /etc/postfix/local-host-names?

ejkeebler 1st November 2005 12:39

Answers
 
Yes I use an email client - Thunderbird and Outlook, and both can send emails to name@server.domain.com, but both get return to senders when sending to name@domain.com. When I send either from mailx or from thunderbord they arrive as name@server.domain.com

I am using Maildir, Postfix and Courier if that makes a difference.

As for the user mail clients setup, I do have ISPconfig installed but do not use it, as I really don't see the point since I just wanted to setup a working mail server, so.... I just create users with adduser and then send an email to that user@server.domain.com and tada, Maildir is created and that user has a mailbox.

Hope those answer the questions you had, thanks for the help!

falko 1st November 2005 12:52

Have a look at this thread: http://www.howtoforge.com/forums/showthread.php?t=2

ejkeebler 1st November 2005 13:35

Still Broke
 
Thanks falko, I'm guessing I found the problem I checked my /etc/postfix/local-host-names and it had basically every possible domain combination in there:
localhost
server.domain
localhost.server.domain
localhost.domain
domain

so I checked my main.cf and I saw the mydestination line is commented out and does not contain "domain", it does have locahost etc. Could this be the issue?

I also checked the virtualusertable and did notice an entry probably from when I was messing around with ISPConfig trying to figure it out.

If this is the issue how does the server know that when mail is sent, to send it out as name@domain.com and not one of the others, like name@localhost.server.domain.com??

Thanks again

--Update
just uncommented the mydestination line and added domain.com to it, restarted postfix and when i send out mail it still comes as server.domain.com and when sending to name@domain.com, I have not received a return to sender (as I was before), but have not received the email yet either.

falko 1st November 2005 14:39

Did you run

Code:

postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
postconf -e 'mydestination = /etc/postfix/local-host-names'

Did you run
Code:

postmap /etc/postfix/virtusertable
after you've changed /etc/postfix/virtusertable?
All the information you need is in this post: http://www.howtoforge.com/forums/sho...=4&postcount=2

ejkeebler 1st November 2005 15:34

Well thanks anyway
 
Email is still not coming from name@domain.com but from name@server.domain.com instead and email still not being received when sending to name@domain.com, no big deal at least it works which was my goal, im sure I just didn't set a hostname value or something like that somewhere, I plan on setting up a new one again anyway ;)

Thanks for all the help.


All times are GMT +2. The time now is 19:12.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.