Page 1 of 1

Spamassassin - error 550 5.1.1

Posted: Wed Jan 25, 2006 9:21 pm
by KevinDSomers
I have just followed the instructions in the new technote, and now I can't receive any mail. If I back out of the changes, everything works again. I can send mail out from Scalix.

When I send a mail to Scalix, or respond to a received mail I get the following error:

Exchange sees it as:

The following recipient(s) could not be reached:
ksomers@mydomain.com on 1/27/2006 7:57 PM
The email account does not exist a the organization this message was sent to. Check the e-mail address, or contact the recipient directly to find out the correct address.
<mail.mydomain.com #5.1.1 SMTP; 550 5.1.1 <ksomers@mail.mydomain.com>...User unknown>

Hotmail is a little more informative:

From: MAILER-DAEMON@mydomain.com
Subject: Returned mail: see transcript for details

The original message was received at Wed, 25 Jan 2006 20:09:19 -0500
from root@localhost

----- The following addresses had permanent fatal errors -----
<ksomers@mydomain.com>
(reason: 550 5.1.1 <ksomers@mail.mydomain.com>... User unknown)
(expanded from: <ksomers@mydomain.com>)

----- Transcript of session follows -----
... while talking to [127.0.0.1]:
>>> DATA
<<< 550 5.1.1 <ksomers@mail.mydomain.com>... User unknown
550 5.1.1 <ksomers@mydomain.com>... User unknown
<<< 503 5.0.0 Need RCPT (recipient)

my /var/opt/scalix/sys/smtpd.cfg includes
SMTPFILTER=TRUE
RELAY accept 127.0.0.1
RELAY accept .mydomain.com
RELAY Log_Reject ALL

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

I forget the file at the moment, but I removed the -m flag

I can reboot and all the service appear to operate correctly.

maillog end with
Jan 25 20:18:46 mail sendmail[3121]: k0Q1IjUB003121: to=<ksomers@mywork.com>, delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=32157, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k0Q1IjwF003122 Message accepted for delivery)

This has got to be a simple config change, but I'm at a loss where to look

Kevin

Posted: Wed Jan 25, 2006 9:29 pm
by KevinDSomers
An addition:

I can't even send a mail to myself.

Posted: Wed Jan 25, 2006 9:58 pm
by ScalixSupport
The SMTP Relay will do a couple of lookups depending on your configuration.

It will always attempt to look up the address in the SYSTEM directory. So, the first test is to run the command:

Code: Select all

omsearch -e IA=ksomers@mydomain.com
If that comes up with an entry, the message should be delivered to your Scalix mailbox.

However, if the omsearch command comes back with something and you run the command:

Code: Select all

ommapsmtp ksomers@mydomain.com
and it comes back with

Code: Select all

ksomers@mydomain.com
instead of

Code: Select all

scalix:any:ksomers@mydomain.com
, the entry is an internet user.

This is where the second lookup takes place. SMTP Relay will make use of sendmail to determine if the user can be routed off the box. If you have mydomain.com in /etc/mail/local-host-names and ksomers is not a local user, that's where the "user unknown" error is likely to be returned.

Cheers

Dave

Posted: Wed Jan 25, 2006 10:15 pm
by ScalixSupport
Hi Kevin,

Also, if you rebuilt your sendmail.cf file from the sendmail.mc file, you need to run omsendin to put the Scalix specific back in. The syntax is:

Code: Select all

omsendin


Thanks,
Rachel

Posted: Thu Jan 26, 2006 9:03 am
by KevinDSomers
Dave,

The omsearch command came back "Entry not in the directory". This is not the case if I remove all the spammassassin related entries.

omsearch on sxadmin only comes back if I use sxadmin@mail.mydomain.com

the ommapsmtp returns the scalix:any result.

I can't imagine this is specifically related to the local-host-names file, since everything functions correctly after removing the spamassassin related commands.


Rachael,

I used the omsendin both after adding the commands and testing, then removing the commands and testing.

Kevin

Posted: Thu Jan 26, 2006 1:15 pm
by ScalixSupport
Hi Kevin,

omsearch searches the Scalix system directory and is not affected in any way by sendmail, so perhaps you had a typo on the first omsearch and not on the subsequent one. Anyway, can you type this and post the results:

Code: Select all

omsearch -e cn=*|grep -i ksomers


which will show us exactly what your address is.

Thanks,
Rachel

Posted: Thu Jan 26, 2006 3:10 pm
by KevinDSomers
Rachel,

BTW: Thanks for the help... I read my previous posts and didn't say thanks once.

I ran this comand and it came back with:
INTERNET-ADDR="Kevin Somers" <ksomers@mydomain.com>

sxadmin has
INTERNET-ADDR=sxadmin@mail.mydomain.com

Also, sxadmin can receive mail. I hadn't checked this account.

I tried putting my /var/opt/scalix/sys/smtpd.cfg and /etc/mail/sendmail.cf back as they were running omsendin, restarting the services and mail works to my account. Reverse this process (putting spamassassin back) and the same thing.

Thanks,

Kevin

Posted: Thu Jan 26, 2006 3:14 pm
by ScalixSupport
Hi Kevin,

You're very wecome.

Do you have copies of your modified smtpd.cfg and sendmail.cf files? Could you post those? Are you certain that spamd and spamass-milter are running on your system? Could you type:

ps -aef|grep -i spam

and post those results as well?

Thanks,
Rachel

Posted: Mon Jan 30, 2006 2:36 pm
by KevinDSomers
Thanks for the help, but I bailed on getting this working. The client decided to go with AppRiver for their spam and virus filtering.

Kevin

Posted: Fri Aug 04, 2006 6:02 pm
by andrew
I was having the same trouble (FC4 with spamassassin) until I discovered that omsendin was modifying /etc/sendmail.cf rather than /etc/mail/sendmail.cf ! Beating my head against the wall i finally looked at the console when running omsendin and noticed...