PDA

View Full Version : All user email is going to catchall!


tgansert
24th May 2006, 21:44
Every piece of mail being sent to *@vdomain.tld is going to catchall box!

If you define a catchall, does it literally catch ALL or is it only supposed to catch mail to 'user unknowns'?

If it is not supposed to catch ALL, how can I fix this?

tgansert
24th May 2006, 22:02
Well, I answered my own question. Disabling the catchall email addresses allows email to be sent to the users' mailbox.

Is this by design?

falko
25th May 2006, 15:50
Have a look here: http://www.howtoforge.com/faq/14_33_en.html

tgansert
25th May 2006, 17:42
I have no $mydomain :o

Here is my 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

alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = actualhost.actualdomain.tld, localhost.actualdomain.tld, futurevhost.tld, vhost.tld, , localhost
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 25600000
recipient_delimiter = +
home_mailbox = mail
unknown_local_recipient_reject_code = 450
relayhost =
mynetworks = 127.0.0.0/8 in.side.ip.range/22 out.side.ip.range/24
inet_interfaces = all
queue_run_delay = 300s
maximal_backoff_time = 1000s
minimal_backoff_time = 300s
#virtual_maps = hash:/etc/postfix/#virtual_maps


virtual_maps = hash:/etc/postfix/virtusertable

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


Here's local-host-names:

###################################
#
# ISPConfig local-host-names Configuration File
# Version 1.0
#
###################################
localhost
actualhost.actualdomain.tld
localhost.actualhost.actualdomain.tld
localhost.actualdomain.tld


Side question: Why are there no vhosts defined in my local-host-names?

falko
26th May 2006, 02:50
If there's no myhostname or mydomain in main.cf, Postfix uses the output of hostname -f as hostname.
What's the output of hostname -f, and do you use that hostname for a web site you created in ISPConfig?

Side question: Why are there no vhosts defined in my local-host-names?In local-host-names, there are only the domains that Postfix accepts emails for; the email addresses are listed in virtusertable.

tgansert
26th May 2006, 15:31
the return of hostname -f is actualhost.actualdomain.tld.

Here's some log tail:
May 25 14:20:07 actualhost postfix/trivial-rewrite[18489]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 15:07:15 actualhost postfix/trivial-rewrite[19746]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 15:50:12 actualhost postfix/trivial-rewrite[21186]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 15:55:05 actualhost postfix/trivial-rewrite[21350]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 16:09:32 actualhost postfix/trivial-rewrite[21799]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 17:27:57 actualhost postfix/trivial-rewrite[23994]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 18:33:46 actualhost postfix/trivial-rewrite[25741]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 26 07:07:19 actualhost postfix/smtpd[13764]: warning: smtpd_peer_init: 65.110.48.180: hostname unknown.sagonet.net verification failed: Name or service not known

falko
26th May 2006, 16:55
the return of hostname -f is actualhost.actualdomain.tld. And do you use actualhost.actualdomain.tld for a web site you created with ISPConfig?

Here's some log tail:
May 25 14:20:07 actualhost postfix/trivial-rewrite[18489]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 15:07:15 actualhost postfix/trivial-rewrite[19746]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 15:50:12 actualhost postfix/trivial-rewrite[21186]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 15:55:05 actualhost postfix/trivial-rewrite[21350]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 16:09:32 actualhost postfix/trivial-rewrite[21799]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 17:27:57 actualhost postfix/trivial-rewrite[23994]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 25 18:33:46 actualhost postfix/trivial-rewrite[25741]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 26 07:07:19 actualhost postfix/smtpd[13764]: warning: smtpd_peer_init: 65.110.48.180: hostname unknown.sagonet.net verification failed: Name or service not knownvirtual_alias_domains? Is it possible that you try to do virtual hosting with Postfix? This does not work if you have ISPConfig installed.
What's in /etc/postfix/main.cf?

tgansert
26th May 2006, 17:01
See http://www.howtoforge.com/forums/showpost.php?p=27467&postcount=4 (higher up in this post).

Would you like me to comment out virtual_maps = hash:/etc/postfix/virtusertable ?

falko
26th May 2006, 17:38
But I don't see an entry for virtual_alias_domains in your main.cf...:confused:

tgansert
26th May 2006, 17:44
Could it be virtual_maps = hash:/etc/postfix/virtusertable ?

Here's another viewpoint:

May 24 11:48:09 actualhost postfix/smtpd[2902]: connect from mail.riversharks.com[66.95.113.75]
May 24 11:48:10 actualhost postfix/smtpd[2902]: 81C59BB55A: client=mail.riversharks.com[66.95.113.75]
May 24 11:48:11 actualhost postfix/cleanup[2903]: 81C59BB55A: message-id=<F376CCF0AB0C194A80A0E5E8D20D8B65ABB5DB@SHARKSERVER .riversharks.com>
May 24 11:48:11 actualhost postfix/qmgr[9288]: 81C59BB55A: from=<kdaffin@riversharks.com>, size=9560, nrcpt=1 (queue active)
May 24 11:48:11 actualhost postfix/trivial-rewrite[2815]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domains
May 24 11:48:11 actualhost postfix/smtpd[2902]: disconnect from mail.riversharks.com[66.95.113.75]
May 24 11:48:13 actualhost procmail[2948]: Error while writing to "/dev/null"

falko
27th May 2006, 15:11
May 24 11:48:11 actualhost postfix/trivial-rewrite[2815]: warning: do not list domain actualhost.actualdomain.tld in BOTH mydestination and virtual_alias_domainsThis makes absolutely no sense to me. Is it possible that you have a second Postfix installed (with virtual hosting), and that one's running?
You normally get this warning if you follow this tutorial http://www.howtoforge.com/virtual_postfix_mysql_quota_courier and configure something wrong. But your main.cf looks ok... :confused:

tgansert
27th May 2006, 16:01
I don't see one.. here's some verbose output, I may be missing something..

Line 40: ...MAIL=/var/mail/root PWD=/var/log MAILDIR=/root/Maildir/ ...

That's the only odd thing I see.. a both mbox and Maildir in the path variable..

falko
27th May 2006, 22:32
I don't see one.. here's some verbose output, I may be missing something..

Line 40: ...MAIL=/var/mail/root PWD=/var/log MAILDIR=/root/Maildir/ ...

That's the only odd thing I see.. a both mbox and Maildir in the path variable..
Where do you get that output?

tgansert
30th May 2006, 17:16
[root@cpoc ~]$ ps auxef