HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   Bug? (postfix refuses mail, relay access denied) (http://www.howtoforge.com/forums/showthread.php?t=2319)

st2xo 31st January 2006 14:56

Bug? (postfix refuses mail, relay access denied)
 
a default and fresh ispconfig installation (postfix, using Maildir)

added a new website with host www and domain.tld
the mail sending and receiving works fine (smtp_auth, pop/imap etc.)

After successfully testing with www Ive added the hosts www2 and www3
After that postfix refuses all incoming smtp mails (from external servers)

/var/log/mail:
Code:

Jan 31 12:21:34 linux postfix/smtpd[20275]: connect from fmmailgate05.web.de[217.72.192.243]
Jan 31 12:21:34 linux postfix/smtpd[20275]: NOQUEUE: reject: RCPT from fmmailgate05.web.de[217.72.192.243]: 554 <myname@domain.tld>: Relay access denied; from=<myname@web.de> to=<myname@domain.tld> proto=ESMTP helo=<fmmailgate05.web.de>
Jan 31 12:21:34 linux postfix/smtpd[20275]: disconnect from fmmailgate05.web.de[217.72.192.243]

now Ive deleted the two additional hostname www2 and www3, but the entrys for www2 and www3 were not have been deleted in /etc/postfix/local-host-name:

Code:

###################################
#
# ISPConfig local-host-names Configuration File
#        Version 1.0
#
###################################
localhost
myserver.de
localhost.myserver.de
www.domain.tld
www3.domain.tld
www2.domain.tld
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####

Also in /etc/postfix/virtusertable:

Code:

###################################
#
# ISPConfig virtusertable Configuration File
#        Version 1.0
#
###################################
stefan@www.domain.tld    web14_stefan
web14_stefan@www.domain.tld    web14_stefan
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####


another check the ispconfig:
ISP Manager / Webs / domain.tld / Co-Domains
-> no entrys

Now I wanted to add a host www4, just for checking where entrys would be made in the ispconfig database and then looking for www2 and www3 in the database

(I had configured the host limit 3 for this web).
adding the www4 host an error occurs:
"Die maximale Anzahl Domains des Web wurde erreicht." (german)
(in english like "maximum domain count exceeded" or something like that)

But the www2 and www3 host were already deleted, so the www4 host should have been possible to add.
Ok, back to the main topic with postfix

I read the threads with adding a new co-domain with empty host so that the entry domain.tld could be processed for stefan@domain.tld and the (unusual) entry www.domain.tld could be processd for stefan@www.domain.tld

I think I understand now the way ispconfig handles the hostnames, tlds and that stuff. So I deleted the complete web in the ispconfig manager and deleted the trashcan also. All Postfix config files (localhost, virtuser, alias) were now "fresh" and default, no entries. The /home/www directory is empty (except of the servername myserver.tld for itself, no web* directory).

Ok, new game. Added a new web, but now no I leave the host blank and typed the tld "domain.tld" in the field "domain".
/home/www/web16 has been created, fine!
/home/www/domain.tld should have been, but has not been created
(probably because the field "host" has been left empty)
in the web-tree in ispconfig the new web "domain.tld" has not been added

/etc/postfix/local-host-name is now correct, only domain.tld is added
/etc/postfix/virtusertable is correct to, nothing is added

st2xo 31st January 2006 14:59

sorry, sorry, this was a mistake!
This posting is not finished yet, Im still researching.

st2xo 31st January 2006 16:00

No bug!
preparing my posting I hit the enter button by mistake before Im realy finisihed with writing, researching - and thinking :o
Unfortunately there is no possibilty to delete own postings :(

The handling with mail, hostnames and tlds is a little bit confusing at first time. After all its logical, of course, but first you have to get used to it.

If anybody has the same problems than me and will read this thread - first delete the trashcan in the reseller/client account before thinking theres an error in the host count limitations

"peinlich, peinlich" (german) :D


All times are GMT +2. The time now is 08:07.

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