PDA

View Full Version : undeliverable mail to my own system


Ovidiu
7th March 2006, 18:02
I send an email to one of my domains and it comes back with these errors:

This is the Postfix program at host h5810.serverkompetenz.net.

I'm sorry to have to inform you that your message could not be
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<debian@h5810.serverkompetenz.net> (expanded from <ovidiu@pacura.ru>): unknown
user: "debian"

and here is more details:

Reporting-MTA: dns; h5810.serverkompetenz.net
X-Postfix-Queue-ID: 9148D5D01DD
X-Postfix-Sender: rfc822; o-v-i@gmx.de
Arrival-Date: Tue, 7 Mar 2006 16:45:26 +0100 (CET)

Final-Recipient: rfc822; debian@h5810.serverkompetenz.net
Original-Recipient: rfc822; ovidiu@pacura.ru
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; unknown user: "debian"

why does it try to deliver to debian@.... ? you see the original recipient was ovidiu@pacura.ru...
btw. this is the main email address of this user, its not an alias...

till
7th March 2006, 20:52
Please check /etc/postfix/virtusertable and your postfix alias file.

Ovidiu
7th March 2006, 23:27
I checked the virtualuser table and indeed there was a loop.

I have the following settings inside ispcfg panel:

ovidiu@pacura.ru is being forwarded to postmaster@web-designerz.de
ovidiu also has the following aliases: abuse, webmaster and admin.

BUT inside the virtualuser table all these were not forwarded to postmaster@web-designerz.de but to postmaster => resulting in a loop.

Can't I have this forwarded like I wanted to postmaster@web-designerz.de ?

And if I can why is this setting not correctly written to the virtualuser table?

besides that I looked inside /etc/aliases - all users were forwarded to root and root was forwarded to debian, so I would like to make a forward from debian to postmaster@web-designerz.de which is the central email address on this system.... can I just insert: debian: postmaster@web-designerz.de ? or do I have to insert debian: web1_postmaster ?

till
7th March 2006, 23:44
The alis table is not managed by ISPConfig and its better to not use it at this may cause these problems you currently encounter.

BUT inside the virtualuser table all these were not forwarded to postmaster@web-designerz.de but to postmaster => resulting in a loop.

Have you disabled username prefixes? Then you must have created an user named postmaster in the website web-designerz.de.

The username postmaster and the part "postmaster@" in an email address are independant. They can be the same when you disabled username prefixes, but they must not be the same.

Ovidiu
8th March 2006, 00:54
well I only want mail going to root not to disappear so what do I insert into aliases so root points to webmaster@web-designerz.de this email address or just root: web1_postmaster ?

next thing: I did not diable prefixes, I just asked if I can set a forward to postmaster@web-designerz.de inside ispcfg panel or do I have to use web1_postmaster which means I cannot forward to external email addresses for instance.

I tried forwarding inside ispcfg panel to postmaster@web-designerz.de but inside the virtualusertabel I see that ovidiu@pacura.ru is being forwarded to web6_postmaster which is an alias for ovidiu@pacura.ru so there is a loop...

falko
8th March 2006, 11:29
well I only want mail going to root not to disappear so what do I insert into aliases so root points to webmaster@web-designerz.de this email address or just root: web1_postmaster ?Use root: web1_postmaster (and run newaliases afterwards).

next thing: I did not diable prefixes, I just asked if I can set a forward to postmaster@web-designerz.de inside ispcfg panel or do I have to use web1_postmaster which means I cannot forward to external email addresses for instance.No, you must use email addresses in the forward field.

I tried forwarding inside ispcfg panel to postmaster@web-designerz.de but inside the virtualusertabel I see that ovidiu@pacura.ru is being forwarded to web6_postmaster which is an alias for ovidiu@pacura.ru so there is a loop...
Do you have web6_postmaster: ovidiu@pacura.ru in /etc/aliases? Remove it!

Ovidiu
8th March 2006, 11:42
ok, alls fine now except for this:

cat /etc/postfix/virtusertable | grep pacura.ru
abuse@www.pacura.ru web6_postmaster
webmaster@www.pacura.ru web6_postmaster
admin@www.pacura.ru web6_postmaster
ovidiu@www.pacura.ru web6_postmaster
web6_postmaster@www.pacura.ru web6_postmaster
abuse@pacura.ru web6_postmaster
webmaster@pacura.ru web6_postmaster
admin@pacura.ru web6_postmaster
ovidiu@pacura.ru web6_postmaster
web6_postmaster@pacura.ru web6_postmaster


this is inside the virtualusertable although ovidiu@pacura.ru is set to be forwarded to postmaster@web-designerz.de which coresponds to web1_postmaster... WHY? and how to change this? delete the forward and set it again?

But now mails get into my inbox (mind that I am talking about the inbox of postmaster@web-designerz.de) ... ? here is a header from a mail I just sent to myself:

Return-Path: <tenaka.khan@gmx.net>
X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on
h5810.serverkompetenz.net
X-Spam-Level:
X-Spam-Status: No, score=-1.4 required=3.1 tests=ALL_TRUSTED autolearn=ham
version=3.1.0
X-Original-To: ovidiu@pacura.ru
Delivered-To: web1_postmaster@h5810.serverkompetenz.net
Received: from mail.web-designerz.de (localhost [127.0.0.1])
by h5810.serverkompetenz.net (Postfix) with ESMTP id 74C0A5D0198
for <ovidiu@pacura.ru>; Wed, 8 Mar 2006 10:43:42 +0100 (CET)
Received: from 62.159.xxx.xxx
(SquirrelMail authenticated user web1_postmaster)
by mail.web-designerz.de with HTTP;
Wed, 8 Mar 2006 11:43:42 +0200 (EET)
Message-ID: <12608.62.159.242.114.1141811022.squirrel@mail.web-designerz.de>
Date: Wed, 8 Mar 2006 11:43:42 +0200 (EET)
Subject: test only
From: "Tenaka Khan" <tenaka.khan@gmx.net>
To: ovidiu@pacura.ru
User-Agent: SquirrelMail/1.4.6
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal

falko
8th March 2006, 22:12
Please post the contents of /etc/postfix/virtusertable and /etc/aliases.

Ovidiu
9th March 2006, 08:34
###################################
#
# ISPConfig virtusertable Configuration File
# Version 1.0
#
###################################
webmaster@www.web-designerz.de web1_postmaster
abuse@www.web-designerz.de web1_postmaster
admin@www.web-designerz.de web1_postmaster
postmaster@www.web-designerz.de web1_postmaster
web1_postmaster@www.web-designerz.de web1_postmaster
webmaster@web-designerz.de web1_postmaster
abuse@web-designerz.de web1_postmaster
admin@web-designerz.de web1_postmaster
postmaster@web-designerz.de web1_postmaster
web1_postmaster@web-designerz.de web1_postmaster
abuse@www.hai-hui.net web2_info
webmaster@www.hai-hui.net web2_info
postmaster@www.hai-hui.net web2_info
info@www.hai-hui.net web2_info
web2_info@www.hai-hui.net web2_info
abuse@hai-hui.net web2_info
webmaster@hai-hui.net web2_info
postmaster@hai-hui.net web2_info
info@hai-hui.net web2_info
web2_info@hai-hui.net web2_info
dark@www.hai-hui.net web2_dark
web2_dark@www.hai-hui.net web2_dark
dark@hai-hui.net web2_dark
web2_dark@hai-hui.net web2_dark
timisoara@www.hai-hui.net web2_timisoara
web2_timisoara@www.hai-hui.net web2_timisoara
timisoara@hai-hui.net web2_timisoara
web2_timisoara@hai-hui.net web2_timisoara
webmaster@www.rum-reisen.de web3_melanie
postmaster@www.rum-reisen.de web3_melanie
abuse@www.rum-reisen.de web3_melanie
admin@www.rum-reisen.de web3_melanie
melanie@www.rum-reisen.de web3_melanie
web3_melanie@www.rum-reisen.de web3_melanie
webmaster@rum-reisen.de web3_melanie
postmaster@rum-reisen.de web3_melanie
abuse@rum-reisen.de web3_melanie
admin@rum-reisen.de web3_melanie
melanie@rum-reisen.de web3_melanie
web3_melanie@rum-reisen.de web3_melanie
kiggers@www.rum-reisen.de web3_kiggers
web3_kiggers@www.rum-reisen.de web3_kiggers
kiggers@rum-reisen.de web3_kiggers
web3_kiggers@rum-reisen.de web3_kiggers
renate@www.web-designerz.de web1_renate
web1_renate@www.web-designerz.de web1_renate
renate@web-designerz.de web1_renate
renate@web-designerz.de web1_renate
web1_renate@web-designerz.de web1_renate
abuse@www.kissaki.de web4_ossi
webmaster@www.kissaki.de web4_ossi
postmaster@www.kissaki.de web4_ossi
admin@www.kissaki.de web4_ossi
web4_ossi@www.kissaki.de web4_ossi
abuse@kissaki.de web4_ossi
webmaster@kissaki.de web4_ossi
postmaster@kissaki.de web4_ossi
admin@kissaki.de web4_ossi
web4_ossi@kissaki.de web4_ossi
abuse@www.zice.ro web5_postmaster
webmaster@www.zice.ro web5_postmaster
admin@www.zice.ro web5_postmaster
postmaster@www.zice.ro web5_postmaster
web5_postmaster@www.zice.ro web5_postmaster
abuse@zice.ro web5_postmaster
webmaster@zice.ro web5_postmaster
admin@zice.ro web5_postmaster
postmaster@zice.ro web5_postmaster
web5_postmaster@zice.ro web5_postmaster
abuse@www.pacura.ru web6_postmaster
webmaster@www.pacura.ru web6_postmaster
admin@www.pacura.ru web6_postmaster
ovidiu@www.pacura.ru web6_postmaster
web6_postmaster@www.pacura.ru web6_postmaster
abuse@pacura.ru web6_postmaster
webmaster@pacura.ru web6_postmaster
admin@pacura.ru web6_postmaster
ovidiu@pacura.ru web6_postmaster
web6_postmaster@pacura.ru web6_postmaster
andrei@www.zice.ro web5_andrei
web5_andrei@www.zice.ro web5_andrei
andrei@zice.ro web5_andrei
web5_andrei@zice.ro web5_andrei
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####


# This is the aliases file - it says who gets mail for whom.
# It was originally generated by `eximconfig', part of the exim package
# distributed with Debian, but it may edited by the mail system administrator.
# This file originally generated by eximconfig at Mon Jun 7 17:40:26 CEST 2004
# See exim info section for details of the things that can be configured here.

postmaster: root
root: web1_postmaster

daemon: root
bin: root
sys: root
sync: root
games: root
man: root
lp: root
mail: root
news: root
uucp: root
proxy: root
postgres: root
www-data: root
backup: root
operator: root
list: root
irc: root
gnats: root
nobody: root

hostmaster: root
usenet: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
mailer-daemon: postmaster


although it seems to work atm - ?

falko
9th March 2006, 11:08
I don't see a loop for ovidiu@pacura.ru...

Ovidiu
9th March 2006, 11:53
we agree that these are all relevant entries for this domain?

cat /etc/postfix/virtusertable | grep pacura.ru
abuse@www.pacura.ru web6_postmaster
webmaster@www.pacura.ru web6_postmaster
admin@www.pacura.ru web6_postmaster
ovidiu@www.pacura.ru web6_postmaster
web6_postmaster@www.pacura.ru web6_postmaster
abuse@pacura.ru web6_postmaster
webmaster@pacura.ru web6_postmaster
admin@pacura.ru web6_postmaster
ovidiu@pacura.ru web6_postmaster
web6_postmaster@pacura.ru web6_postmaster

so all mail to these users goes to web6_postmaster and web6_postmaster@pacura.ru goes to web6_postmaster !?

is this not a loop? Inside ispcfg panel I entered postmaster@web-designerz.de which is web1_postmaster as the target address for forwarding all mails of postmaster@pacura.ru and mails do arrive there, but this looked like a loop to me.

falko
9th March 2006, 22:40
so all mail to these users goes to web6_postmaster and web6_postmaster@pacura.ru goes to web6_postmaster !?

That's ok, it's no loop. You can watch your mail log how emails for web6_postmaster@pacura.ru are rewritten to web6_postmaster@h5...serverkompetenz.net, so there's no loop. :)

Ovidiu
10th March 2006, 09:37
thx for takling the time to explain, but what will happen with mails to web6_postmaster@h5...serverkompetenz.net ? I mean there is no such email, I wanted mails to be forwarded to web1_postmaster@web-designerz.de ? where is the logic?

falko
10th March 2006, 10:42
thx for takling the time to explain, but what will happen with mails to web6_postmaster@h5...serverkompetenz.net ?
It will go directly to web6_postmaster's mailbox, because Postfix can't find the address in /etc/postfix/virtusertable and therefore tries to find a system user named web6_postmaster.

I mean there is no such email, I wanted mails to be forwarded to web1_postmaster@web-designerz.de ? where is the logic?
If you want mails for web6_postmaster to be forwarded to web1_postmaster, you can do that with the forward field in ISPConfig, or you use /etc/aliases.

Ovidiu
10th March 2006, 14:05
If you want mails for web6_postmaster to be forwarded to web1_postmaster, you can do that with the forward field in ISPConfig, or you use /etc/aliases.

thats exactly what I have been asking the whole time :-) does it work if I insert postmaster@web-designerz.de (which is the email address of web1_postmaster) into the forward field (for ovidiu@pacura.ru which is web6_postmaster) in ispconfig or do I have to enter web1_postmaster ?

falko
10th March 2006, 16:40
Yes, enter postmaster@web-designerz.de. :)

Ovidiu
10th March 2006, 17:57
yes, but the results posted above by me are the results after entering postmaster@web-designerz.de !? shouldn't I see a result there different than what I posted above?

falko
10th March 2006, 19:39
The forward is done using procmail recipes. Have a look at the procmail recipes in web6_postmaster's homedir.

Ovidiu
11th March 2006, 03:43
ahhh there is a .forward file :-[ I am enlightened now, I did just not understand what was going on there .... thx a lot for the patience