PDA

View Full Version : something wrong with mail & hostname


mantasman
12th January 2006, 01:21
if i send message myself, i see such error in /var/log/maillog:
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, 02:12
What's in /etc/resolv.conf and /etc/hosts?

mantasman
12th January 2006, 06:55
cat /etc/resolv.conf
nameserver 127.0.0.1
nameserver 203.141.128.34
nameserver 203.141.128.33


and
cat /etc/hosts

# 'hosts' file configuration.

127.0.0.1 indre.local localhost
219.117.228.243 indre indre

till
12th January 2006, 12:51
Try to change your /etc/hosts file to this:


# 'hosts' file configuration.

127.0.0.1 indre.local localhost localhost.localhost
219.117.228.243 indre indre

mantasman
12th January 2006, 18: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:
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, 19:59
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: /etc/init.d/postfix restart

mantasman
12th January 2006, 21: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, 22:24
argh, i just removed ispconfig as i was sooooooooo angry :/
So close to the solution... :(


or, and one more question... how can end-user create subdomain?
Under Co-Domains. However, the subdomain must be set up in DNS first.

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, 01: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, 04: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.

mantasman
13th January 2006, 06:46
yes, i followed.
and i'm unable to use PuTTY as i'm under Gentoo ;)
will try today again.

till
13th January 2006, 12:18
and i'm unable to use PuTTY as i'm under Gentoo ;)

OK, a kde or gnome shell console and the ssh command will be fine too ;)

mantasman
13th January 2006, 20:46
i know this very well ;)

i'm not new to linux. but i'm total newbie in web servers managing (at the moment, setuping only :) )

finally emails are working. but only partiately.

i cant login to email and ftp (proftpd) both. as i see from logs, there's something wrong with authd. and i still finished near-complete perfect setuping :/

i see this error in mail logs:
authdaemond: Connection to server 'pgsql.example.com' userid 'admin' database 'template1' failed.


i think i cant login into ftp because of the same reason.
how can i fix that? please dont sugggest to reinstall everything again..... :'(

falko
13th January 2006, 23:31
Have you tried to set up virtual hosting with Postfix on top of the Fedora Core 4 tutorial? This doesn't work with ISPConfig! You have to follow only the "Perfect Setup" for FC4 ( http://www.howtoforge.com/perfect_setup_fedora_core_4 ), and at the end it should work. Don't try to configure Postfix and Proftpd to use MySQL databases.

mantasman
13th January 2006, 23:52
no, no.
after i uninstalled ISPconfig (which was working near perfectly at that moment) i tried to reconfigure everything by "install VHCS2 on fedora core" howto, founded on vhcs.net.
after that, i removed all the packages, list in "Perfect Setup" (except courier-sasl & courier-sasl-devel) and runned trough the whole howto once more.

i disabled postgreSQL and MySQL modules of authdaemond and now i get just "LOGIN FAILED" error in /var/log/maillog

falko
14th January 2006, 01:04
Maybe you should consider a clean re-install?

mantasman
14th January 2006, 01:21
apt-get threatens to remove gnome and many system-config-* applications if i remove cyrus-sasl :/

anyway, why do i need X11 if server is thousands miles away from me :)

if this 'd fail, is there any ways to restore fedora core 4 to it's original state without inserting cds etc?

mantasman
14th January 2006, 03:16
spent the whole night for removing packages and reinstalling them......
and nothing!!!!!!!!!

i still get same authdaemond error that it tries to connect to pgsql.example.com

and i cant connect to ftp too :'(

i even removed all the config directories related to postfix and reinstalled em but nothing :/

mantasman
15th January 2006, 12:55
i found that sasl seems to be not working. for example:
with saslpasswd i add username "me" and password "me". then write saslauthd1-checkpass -u me -p me and it gives me such error:
NO: -13 (authentication failure)
sasldblistusers says:
user: me realm: thehostman.net mech: DIGEST-MD5
user: me realm: thehostman.net mech: CRAM-MD5
user: me realm: thehostman.net mech: PLAIN

wtf is here?

till
15th January 2006, 13:54
ISPConfig does not use the saslpasswd mechanism at all. ISPConfig uses system users and /etc/passwd and /etc/shadow as source for sasl authentication.

mantasman
15th January 2006, 14:36
users exist in these files :/
at the moment, my mail log looks like:
Jan 15 21:32:05 spider-webhosting pop3d: LOGIN FAILED, user=jo@thehostman.net, ip=[::ffff:127.0.0.1]
Jan 15 21:32:05 spider-webhosting pop3d: authentication error: Input/output error

and i still cant connect to ftp too :(

falko
15th January 2006, 19:16
You really should consider a celan re-install instead of working hours and hours on a messed-up system... It's also very hard for us to tell you what's wrong with your system. :(

mantasman
17th January 2006, 00:51
i found that maybe few self-compiled (not rpms) libraries did all the bad things.

i'll have clean debian 3.1 system in a hour :D

wrender
21st October 2006, 20:34
I was having the same problem. I couldn't get it to work by changing the /etc/postfix/main.cf "hostname" and "domainname" to my proper hostname and domain name, so i changed it back to being commented out.

This would give me bounce backs saying the can't find mailbox at "@localhost.localhost". So i just added localhost.localhost to /etc/posfix/local-host-names and did a /etc/init.d/postfix restart

now as far as I can tell, all of my virtual domains within ispconfig are catching email properly....

Wes