Page 1 of 1

Catch All on Scalix 11.0.1 CE not working

Posted: Fri Feb 16, 2007 2:43 pm
by easysoft
Hi,

First off, many thanks for a wonderful product !

I'm using Scalix 11.0.1 CE (upgraded from 10.x) and am trying to setup a catchall or "Redirect account" to handle mail sent to non-existant addresses.

I have looked through the forums and the Admin guide, and it seems all I need to do is add this line to my ~/sys/smtpd.conf and then restart smtpd :

CATCH *@mydomain.org mail@mydomain.org

I have done this, and restarted scalix, but an email sent to :
xyz@mydomain.org
simply bounces with the "User unknown" error.

As requested in a previous thread, heres the output from grep -v "^#" smtpd.cfg | cat -vet :

//---
$
$
$
EXTENSIONS=AUTH,DSN,8BITMIME$
$
$
$
CATCH *@mydomain.org mail@mydomain.org$
$
RELAY accept 127.0.0.1$
RELAY accept .muslimaid.org$
RELAY Log_Reject ALL$
$
RECIPIENT Log_Reject *@*@*$
RECIPIENT Log_Reject *%*$
RECIPIENT Log_Reject *!*$
RECIPIENT Log_Reject *#*@*$
SMTPFILTER=TRUE$
$
[SUBMIT]$
ANONYMOUS Log_Reject ALL$
$
[LMTP]$
LISTEN=localhost:24$
$
//--

The account mail@mydomain.org exists (and is in use).

Any idea why the catchall fails ?

Thanks in advance,

Arif

Posted: Sat Feb 17, 2007 1:15 pm
by florian
HI,

1. what does

Code: Select all

lsof -i :25

output.

2. How to you send your test message and mail?

Florian.

Posted: Sat Feb 17, 2007 6:04 pm
by easysoft
Thanks for your response Florian,

1)

# lsof -i :25
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
omsmtpd 2351 root 4u IPv4 4853751 TCP myhost.mydomain.org:smtp (LISTEN)
omsmtpd 2351 root 5u IPv4 4853752 TCP mail.mydomain.org:smtp (LISTEN)
omsmtpd 2351 root 6u IPv4 4853753 TCP 192.168.10.5:smtp (LISTEN)
omsmtpd 2351 root 19u IPv4 7348792 TCP myhost.mydomain.org:smtp->203.115.20.233:16159 (ESTABLISHED)
sendmail 8105 root 9u IPv4 7584562 TCP myhost.mydomain.org:42698->mx2.idealglow.com:smtp (ESTABLISHED)
sendmail 8105 root 10u IPv4 7584562 TCP myhost.mydomain.org:42698->mx2.idealglow.com:smtp (ESTABLISHED)
sendmail 21591 root 4u IPv4 4667703 TCP localhost.localdomain:smtp (LISTEN)


2) I sent a mail from the root shell account on the same machine to xyz@mydomain.org.

Hope that helps - will try to do further checking on Monday.

Best wishes,
Arif

Posted: Sat Feb 17, 2007 8:44 pm
by florian
so, the latter is the problem. when you use the mail command, it talks directly to the sendmail binary and bypasses omsmtpd; therefore, catchall doesn't work. It will work, however, for emails coming in externally. When you need catchall also for shell-level email on the server, you have to setup catchall via virtusertable or luser_relay features in sendmail.

Florian

Posted: Mon Feb 19, 2007 6:29 am
by easysoft
Thanks Florian !

That was it - sending from a normal Mail client works fine - sorry for the trouble.

Best wishes,
Arif