Gentoo: hostname, domain, courier smtp ... problems allover

Problem solved in the end :)

5 Replies

To use something different that localhost you need to update your

/etc/hosts file so it contains something like

127.0.0.1 hostname.domain hostname localhost

Adam

Thanks for the tip. Can't I use my external IP address in /etc/hosts? Like:

127.0.0.1 localhost

64.62.190.214 hostname.DOMAIN.net hostname

Is the above ok? (a google search says that it is, but …)

Problem solved in the end :)

Little by little …

I have a couple more questions regarding some MX issue if there is an error sending a mail … my mailer wants to send a notification to the postmaster about the error and i receive an error like "mail loops back to self". I'll be on this and will post if I have a fix. Any ideas anyone? (i have configured the aliases/systemm file for the postmaster address correctly then ran "makealiases")

@mastabog:

Little by little … :)

I have a couple more questions regarding some MX issue if there is an error sending a mail … my mailer wants to send a notification to the postmaster about the error and i receive an error like "mail loops back to self". I'll be on this and will post if I have a fix. Any ideas anyone? (i have configured the aliases/systemm file for the postmaster address correctly then ran "makealiases")

This error message means that the best MX for the domain in the email address points to your machine, but your machine doesn't believe it's a final destination for that domain.

Check that you've got Courier set up to know that whatever is after 'postmaster@' is recognised as being local to you (without seeing the message, it might be postmaster@localhost, postmaster@your.domain, postmaster@yourhost.your.domain, or something even odder.)

For postfix, this is /etc/postfix/mydomains, I'm not sure where Courier puts it to be honest.

Regards,

Tim.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct