Page 1 of 1

User Unknown error

Posted: Thu Aug 03, 2006 1:17 am
by cridds
Hi

Looking for some help, here's the scenerio:

I have a RH linux gateway accepting mail for a domain, some of the users mail is sent via a virtusertable to either other email accounts, or the scalix linux box( which is an internal RH EL4 server with Scalix Enterprise 10.0.1 installed). So on the gateway virtusertable is
scalixuser@example.com scalixuser@[scalix.example.com]

scalix.example.com has an external and internal static IP address

/etc/mail/relay-domains has :
[scalix.example.com]
example.com

/var/opt/scalix/sys/smtpd.cfg has:
RELAY accept 127.0.0.1
RELAY accept 192.168.1.200
RELAY accept .example.com
RELAY Log_Reject ALL

So when an email is sent to scalix.example.com this is the result in the maillog:

Aug 3 12:51:02 scalix sendmail[5104]: k734p2xp005104: <scalixuser@[scalix.example.com]>... User unknown
Aug 3 12:51:02 scalix sendmail[5104]: k734p2xp005104: from=<someuser@hotmail.com>, size=1179, class=0, nrcpts=0, proto=ESMTP, daemon=MTA, relay=gateway.example.com[192.168.1.254]

Question:
What can be modified to allow the scalixuser to relay mail?

A work around that does work is to have a local user account for scalixuser on scalix.example.com, past mail through a virtusertable on scalix, and add an entry to /etc/aliases to send the mail from scalixuser to scalixuser@example.com which scalix will send locally.

Any help would be appreciated!!!.....Cheers

Posted: Thu Aug 03, 2006 7:37 am
by ScalixSupport
Who is listening on the external interfaces port 25 ? It looks to me like sendmail is listening, not the Scalix SMTPd.

Sascha.

Posted: Thu Aug 03, 2006 9:39 am
by cridds
Thanks for the response

Okay, the smtpd relay is listening on port 25

Testing interfaces

[root@scalix ~]# telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused

[root@scalix ~]# telnet 192.168.1.200 25
Trying 192.168.1.200...
Connected to scalix.example.com (192.168.1.200).
Escape character is '^]'.
220 scalix.example.com ESMTP Scalix SMTP Relay 10.0.1.3; Thu, 03 Aug 2006

/etc/sysconfig/sendmail:

DAEMON=no
QUEUE=1h

maillog:

Aug 3 scalix sendmail[8983]: k73DeY1l008983: from=<someuser@hotmail.com>, size=1591, class=0, nrcpts=1, msgid=<BAY19-F37B902DC10DCCFB87DACAC0530@phx.gbl>, proto=ESMTP, relay=root@localhost
Aug 3 scalix sendmail[8983]: k73DeY1l008983: to=<scalixuser@[scalix.example.com]>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31591, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]

Does smtp relay have to listen on port 25 on localhost and if so what needs configuring?

Cheers

Posted: Fri Aug 04, 2006 8:38 am
by ScalixSupport

Posted: Sun Aug 06, 2006 10:40 am
by cridds
/etc/sysconfig/sendmail has:
Daemon=yes

Sendmail is listening on localhost:25

Scalix SMTP Relay is listening on external IP:25

Maillog is still registering a "User unknown" ( as in the first post ) for any external mail that is received.

Any ideas?

Posted: Sun Aug 06, 2006 11:23 am
by ScalixSupport
Since you are translating the original email address from scalixuser@example.com to scalixuser@[scalix.example.com] you also need to add that address to the Scalix users aliases. You can do that easiest using SAC. Simply add that address scalixuser@scalix.example.com to the Internet addresses.

Cheers,

Sascha.

Posted: Sun Aug 06, 2006 8:11 pm
by cridds
Brilliant!!.............bleedin' outstanding!!

Cheers for the help

FYI - for anyone else - restart the whole scalix service after any change.