Recipients are not checked at SMTP stage

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

ebag
Posts: 12
Joined: Wed Apr 12, 2006 7:54 am

Recipients are not checked at SMTP stage

Postby ebag » Mon May 29, 2006 9:15 am

Hi,

I'm getting the following error when a mail is sent to a nonexistent user:
This is the body of a mail that is sent to the sender address.

The original message was received at Mon, 29 May 2006 14:03:41 +0200
from localhost [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<fjdfhbsfsd@MYDOMAIN.TLD>

----- Transcript of session follows -----
554 5.0.0 MX list for MYDOMAIN.TLD. points back to vm-scalix.MYDOMAIN.TLD
554 5.3.5 Local configuration error



I got the above mail after I did the following to test this problem:

220 vm-scalix.MYDOMAIN.TLD ESMTP Scalix SMTP Relay 10.0.1.3; Mon, 29 May 2006 14:03:06 +0200 (CEST)
helo SOME.HOSTNAME
250 vm-scalix.MYDOMAIN>TLD Hello [192.168.200.187], pleased to meet you
mail from: MY.REAL@EMAIL.ADDRESS
250 MY.REAL@EMAIL.ADDRESS... Sender ok
rcpt to: fjdfhbsfsd@MYDOMAIN.TLD
250 Ok
data
354 Enter mail, end with "." on a line by itself (relay)
lala
.
250 Ok


this is really weird, because fjdfhbsfsd@MYDOMAIN.TLD is a non-existent user, which should have been rejected in the SMTP session, but that doesn't happen! the Scalix server happily accepts the mail, but the sends a cryptic faillure notification to the original sender by mail.

What do I need to do to fix this?

ScalixSupport
Scalix
Scalix
Posts: 5503
Joined: Thu Mar 25, 2004 8:15 pm

Postby ScalixSupport » Tue May 30, 2006 10:40 am

If the Scalix server is supposed to be the final destination for your domain, you need to add all your domains to /etc/mail/local-host-names and restart sendmail.

Cheers

Dave

ebag
Posts: 12
Joined: Wed Apr 12, 2006 7:54 am

Postby ebag » Tue May 30, 2006 2:24 pm

Thanks a lot! that did the trick!

Since I have a spam/virusfiltering server sitting in front of this box (a postfix/amavisd-new/spamassassin/clamav box) I also configure LDAP lookups for the recipients of mail passing through that box.
For anyone interested, here's how that's done:

In your Postfix's main.cf file, add the following:
relay_recipient_maps = ldap:scalixusers

scalixusers_timeout = 10
scalixusers_server_host = <Scalix server>
scalixusers_server_port = 389
scalixusers_search_base = o=Scalix
scalixusers_query_filter = (mail=%s)
scalixusers_result_attribute = mail


I know that it's a bit redundant to have them both check for valid recipient mail addresses, but in my setup, only the incoming mail is sent through the filter. The local users use the Scalix server for SMTP. It's just nicer to have them both check for valid addresses so that _no_ mail for non-existent users (e.g. typos) will enter the mail system in the first place.

Thanks again!


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 1 guest

cron