Forward all Mails to unknown user

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

stony007_de
Posts: 111
Joined: Fri Jan 04, 2008 7:20 am

Forward all Mails to unknown user

Postby stony007_de » Fri Feb 22, 2008 6:16 am

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?
-------------------------------------------------
Best regards from middle germany

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Feb 22, 2008 6:32 am

Have a look in the Administration Guide on p. 128. Should answer this for you.

stony007_de
Posts: 111
Joined: Fri Jan 04, 2008 7:20 am

Postby stony007_de » Fri Feb 22, 2008 7:23 am

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!!
-------------------------------------------------

Best regards from middle germany

stony007_de
Posts: 111
Joined: Fri Jan 04, 2008 7:20 am

Postby stony007_de » Fri Feb 22, 2008 8:53 am

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]
##########
-------------------------------------------------

Best regards from middle germany

kool_kid
Posts: 179
Joined: Wed Dec 05, 2007 7:27 am

Postby kool_kid » Fri Feb 22, 2008 9:11 am

read the wiki on how to configure catch all account that will do for you.

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Feb 22, 2008 9:13 am

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.

stony007_de
Posts: 111
Joined: Fri Jan 04, 2008 7:20 am

Postby stony007_de » Fri Feb 22, 2008 9:21 am

ahh ok...
that was the problem!!

can i configure it, for the internals, too?
-------------------------------------------------

Best regards from middle germany

Valerion
Scalix Star
Scalix Star
Posts: 2730
Joined: Thu Feb 26, 2004 7:40 am
Location: Johannesburg, South Africa
Contact:

Postby Valerion » Fri Feb 22, 2008 9:24 am

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.

stony007_de
Posts: 111
Joined: Fri Jan 04, 2008 7:20 am

Postby stony007_de » Fri Feb 22, 2008 10:19 am

thanks

i will try it!
-------------------------------------------------

Best regards from middle germany


Return to “Scalix Server”



Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron