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)
-   -   Strange email delivery behaviour (http://www.howtoforge.com/forums/showthread.php?t=5741)

zarrelli 24th July 2006 00:08

Strange email delivery behaviour
 
Hi,

I created a website with one email. And till here, it's all ok, I receive my emails.

But, on a second site, belonging to one of my friend, he created his email addressers and...all his emails come to my box. In the header of the email I find:

X-Original-To: dario@xforce.it
Delivered-To: webxx_xxxxx@zarrelli.org

I went on RoundCube with his account and I don't see any email in his inbox.

zarrelli 24th July 2006 00:36

Strange:


I went on the zarrelli.org admin site in ispconfig and for the user webxx_xxxxx@zarrelli.org i toggled off the Catch-all options. So, dario@xforce.it is now receiving his emails.

But, catch-all is meant to catch on one email address all the emails sent to non existent addresses for the same domain, isn't it? So why is it interfering with email from other domains?

zarrelli 24th July 2006 00:54

More info:

I unchecked catch-all on zarrelli.org email address and I checked on the xforce.it address and the email are flowing with no problems. They are redirected only if I check catch-all on the address in zarrelli.org domain

till 24th July 2006 12:13

Please have a look here:

http://www.howtoforge.com/faq/index....light=catchall

zarrelli 24th July 2006 12:30

Quote:

Please check if the domain of the users that receives all emails is the same as the domain $mydomain in /etc/postfix/main.cf. If this is the case, change $mydomain and run postfix reloadon the shell.
You should never enter a domain that is used for a virtual site on the server as $mydomain in /etc/postfix/main.cf!
Well, I checked my /etc/postfix/main.cf, but I have no $mydomain entry.
This is my /etc/postfix/main.cf:

-------------------------------------------------------

# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = localhost.localdomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = zarrelli.org, localhost.localdomain, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names

-----------------------------------------------

I never touched this file.

falko 24th July 2006 18:02

What's the output of
Code:

hostname
and
Code:

hostname -f
?

What's in /etc/hosts and /etc/postfix/virtusertable?

zarrelli 25th July 2006 00:53

homeland:~# hostname
homeland
homeland:~#

homeland:~# hostname -f
localhost.localdomain

homeland:~# cat /etc/hosts
127.0.0.1 localhost.localdomain localhost homeland
88.198.37.43 control.zarrelli.org

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
homeland:~#

homeland:~# cat /etc/postfix/virtusertable
###################################
#
# ISPConfig virtusertable Configuration File
# Version 1.0
#
###################################
admin@www.zarrelli.org web11_giorgio
giorgio@www.zarrelli.org web11_giorgio
web11_giorgio@www.zarrelli.org web11_giorgio
admin@zarrelli.org web11_giorgio
giorgio@zarrelli.org web11_giorgio
web11_giorgio@zarrelli.org web11_giorgio
dario@www.xforce.it web16_dario
web16_dario@www.xforce.it web16_dario
dario@xforce.it web16_dario
web16_dario@xforce.it web16_dario

till 25th July 2006 10:08

The hostname localhost.localdomain is not a valid hostname for a server that shall exchange emails with other servers.

Please change the hostname to e.g.

echo server1.zarrelli.org > /etc/hostname
/bin/hostname -F /etc/hostname

and make sure that server1.zarrelli.org exists and points to your (external) server IP in DNS.

zarrelli 25th July 2006 10:43

I did as you told.

Flagging catchall still make all the emails from other domains to come on my email address.

Should I erase all the "localhost" and "localhost.localdomain" references in /etc/postfix/main.cf and change them with the new value?

till 25th July 2006 10:49

Quote:

Originally Posted by zarrelli
Should I erase all the "localhost" and "localhost.localdomain" references in /etc/postfix/main.cf and change them with the new value?

Yes, please replace them too and restart postfix afterwards.


All times are GMT +2. The time now is 19:17.

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