HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Installation/Configuration (
-   -   Email from hostname (

ejkeebler 1st November 2005 01: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 I would like it to only be 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 10: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 11: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 13:39

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

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 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 13:52

Have a look at this thread:

ejkeebler 1st November 2005 14: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:

so I checked my 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 and not one of the others, like

Thanks again

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

falko 1st November 2005 15:39

Did you run


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

Did you run

postmap /etc/postfix/virtusertable
after you've changed /etc/postfix/virtusertable?
All the information you need is in this post:

ejkeebler 1st November 2005 16:34

Well thanks anyway
Email is still not coming from but from instead and email still not being received when sending to, 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 23:56.

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