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=16)
-   -   something wrong with mail & hostname (http://www.howtoforge.com/forums/showthread.php?t=2007)

mantasman 12th January 2006 00:21

something wrong with mail & hostname
 
if i send message myself, i see such error in /var/log/maillog:
Code:

B7A094F2043F: to=<web11_me@localhost.localhost>, orig_to=<postmaster@thehostman.net>, relay=none, delay=1, status=bounced (Host or domain name not found. Name service error for name=localhost.localhost type=A: Host not found)
i'm 100% sure, email exists. and web11_me exists too. and if ping localhost.localhost, 127.0.0.1 (so my server) replies.
ftp, www, sending emails work. the only one which doesnt is receiving emails :/
i'm under fedora core 4, setuped by "the perfect setup"

falko 12th January 2006 01:12

What's in /etc/resolv.conf and /etc/hosts?

mantasman 12th January 2006 05:55

Code:

cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 203.141.128.34
nameserver 203.141.128.33

and
Code:

cat /etc/hosts

# 'hosts' file configuration.

127.0.0.1      indre.local    localhost
219.117.228.243 indre  indre


till 12th January 2006 11:51

Try to change your /etc/hosts file to this:

Code:

# 'hosts' file configuration.

127.0.0.1      indre.local    localhost    localhost.localhost
219.117.228.243 indre  indre


mantasman 12th January 2006 17:44

tried. didnt helped.

and i tried to set mydomain/hostname to my real domain.tld. this gets me "looppbacking to myself" error.

a part of a log:
Code:

Jan 13 01:18:39 spider-webhosting postfix/smtp[20921]: 7CEA54F20427: to=<web11_me@mail.thehostman.net>, orig_to=<postmaster@thehostman.net>, relay=none, delay=1, status=bounced (mail for mail.thehostman.net loops back to myself)
as i see from logs, it's received to postmaster@thehostman.net succesfully. but it fails to forward it to local mailbox. which seems to be working too :)

what should i enter into mydomain and myhostname in /etc/psotfix/main.cf ?

so, summary:
if myhostname and/or mydomain set to any local name - fail with "cant find A entry" error

if these two set to my domain - fail with "loops back to myself"

falko 12th January 2006 18:59

Quote:

Originally Posted by mantasman
Code:

Jan 13 01:18:39 spider-webhosting postfix/smtp[20921]: 7CEA54F20427: to=<web11_me@mail.thehostman.net>, orig_to=<postmaster@thehostman.net>, relay=none, delay=1, status=bounced (mail for mail.thehostman.net loops back to myself)

if these two set to my domain - fail with "loops back to myself"

This is easy to solve: put mail.thehostman.net at the bottom of /etc/postfix/local-host-names (where it says that you're allowed to make manual entries) and restart Postfix:
Code:

/etc/init.d/postfix restart

mantasman 12th January 2006 20:45

argh, i just removed ispconfig as i was sooooooooo angry :/

anyway, thanks for suggestion.
i will try this tomorrow.

or, and one more question... how can end-user create subdomain?

and can end-client login into ftp with it's main password from ISPconfig?

falko 12th January 2006 21:24

Quote:

Originally Posted by mantasman
argh, i just removed ispconfig as i was sooooooooo angry :/

So close to the solution... :(

Quote:

Originally Posted by mantasman
or, and one more question... how can end-user create subdomain?

Under Co-Domains. However, the subdomain must be set up in DNS first.
Quote:

Originally Posted by mantasman
and can end-client login into ftp with it's main password from ISPconfig?

No, clients can login only to ISPConfig. Client are ISPConfig users, but not system users.
The users you create under "User & Email" can use FTP.

mantasman 13th January 2006 00:58

i installed all the stuff again but i'm getting stupud cant login error, because authdaemond error because it tries to lookup something in postgreSQL

i dont want to run all the setup again :/
which step did i miss?

falko 13th January 2006 03:23

Did you follow the Fedora 4 "Perfect Setup"? I don't mention PostgreSQL there so I guess you did something wrong (maybe a typo...). You should try to use PuTTY on your Windows machine and simply copy and paste the commands from the tutorial to the shell to avoid typos.


All times are GMT +2. The time now is 20:39.

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