Page 1 of 1

Forward all Mails to unknown user

Posted: Fri Feb 22, 2008 6:16 am
by stony007_de
can i forward all mails, which has a wrong rcpt-address for example
the user address is bob.builder@builder.com and the mail is addressed to bob@builder.com
i what to forward all those mails to a bb which has a configures mailaddress, like failedaddr@builder.com.

how can i realize it?

Posted: Fri Feb 22, 2008 6:32 am
by Valerion
Have a look in the Administration Guide on p. 128. Should answer this for you.

Posted: Fri Feb 22, 2008 7:23 am
by stony007_de
ok that should be the right config, but the test is not well.
my smtpd.cfg looks like:

########################


CATCH @builder.com failedaddr@builder.com

# extra rules added to prevent open relay usage
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*

#######################

if i send an message to an unknown user i get the following message:

###########
----------------------------- ERROR REPORT ----------------------------- Message could not be delivered to the following recipient:

/ internet
DDT1=RFC-822; DDV1=qaywsx@builder.com;

because: 'Recipient name not found at destination' [OM 9300]

Supplementary Information:

550 5.1.1 <qaywsx@builder.com>... User unknown



The message was forwarded to the local Error Manager:
sxadmin / builder/CN=sxadmin
------------------------------------------------------------------------
###########

p.s.
the smtpd was restarted!!

Posted: Fri Feb 22, 2008 8:53 am
by stony007_de
i send from an other accout a mail to a unknown user

where can i find a log? to recognize the error?
in the /var/log/mail i can´t find some errors

#####
Feb 22 13:46:03 scalix-01 ldapmapper[2806]: (re)read relay config file /var/opt/scalix/s1/s/sys/smtpd.cfg
Feb 22 13:46:03 scalix-01 sendmail[26867]: m1MCk2TG026867: <123456@builder.com>... User unknown
Feb 22 13:46:03 scalix-01 sendmail[26867]: m1MCk2TG026867: from=<admin@builder.com>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
##########

Posted: Fri Feb 22, 2008 9:11 am
by kool_kid
read the wiki on how to configure catch all account that will do for you.

Posted: Fri Feb 22, 2008 9:13 am
by Valerion
Remember that the SMTP relay will only listen for incoming mail from the internet, this method will not trap mail that is sent from a local workstation. I suspect this is what you were trying to do here. Make sure you are testing from an outside mail server, and see what the results are.

Posted: Fri Feb 22, 2008 9:21 am
by stony007_de
ahh ok...
that was the problem!!

can i configure it, for the internals, too?

Posted: Fri Feb 22, 2008 9:24 am
by Valerion
Mmm ... I think sendmail is your best bet then. Take out the CATCH in smtpd.cfg and put a redirect in sendmail that points back to an address inside Scalix. You will have to spend a bit of time on Google to get that to work, but I remember the virtusertable being capable of this, at least.

Posted: Fri Feb 22, 2008 10:19 am
by stony007_de
thanks

i will try it!