Page 1 of 1

Scalix 11.1 with Etch smarthost don't work

Posted: Thu Jun 28, 2007 11:53 am
by mascha
Hello,

I have configured the sendmail.mc like:
...
FEATURE(`always_add_domain')dnl
MASQUERADE_AS(`gwserver.gks-berlin.de')dnl
FEATURE(`allmasquerade')dnl
FEATURE(`masquerade_envelope')dnl
define(`SMART_HOST',`post.strato.de')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo', `hash -o /etc/mail/auth/client-info')dnl
dnl # Default Mailer setup
MAILER_DEFINITIONS
MAILER(`local')dnl
MAILER(`smtp')dnl
MAILER(`scalix')dnl
MAILER(scalix)dnl
The file ends here.

Did the m4 to write the sendmail.cf and restart sendmail. I also make the client-info.db like it is decribed a dozen times in the forum... But instaed of sending to the smarthost sendmail gets mailin.rzone.de. Is it perhaps a DNS-problem? Is there anybody who has a smarthost already running with 11.1 on Etch?
I really drive crazy with this smarthost stuff (and I believe I'm not alone)

This is what sendmail returns:

The original message was received at Thu, 28 Jun 2007 19:25:21 +0200
from scalix@localhost [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<spreeweg@web.de>
(reason: 550 5.4.0 <spreeweg@web.de> Relaying denied)

----- Transcript of session follows -----
... while talking to mailin.rzone.de.:
>>> DATA
<<< 550 5.4.0 <spreeweg@web.de> Relaying denied
550 5.1.1 <spreeweg@web.de>... User unknown
<<< 554 5.0.0 no valid recipients given

Any help are really welcome
Matthias

Posted: Mon Jul 02, 2007 7:08 am
by p.richterich
Scalix 11.1.0.45 works fine under Etch for me.
i m totally new to Scalix, so i can t give you any hints. i would also guess, that it is a DNS prob.
did you already try

Code: Select all

sendmail -bt

to test your sendmail config?

Posted: Tue Jul 03, 2007 7:29 am
by mascha
Hi,

we have done nearly anything. The problem is simply sendmail do not use my smarthost. Have you a working system that uses a smarthost correctly with or without smtp auth? When you do so, please post your sendmail.mc and sendmail.cf. Many thanks.

Regards, Matthias

Posted: Tue Jul 03, 2007 7:41 am
by stephan.klein
I do not run the smarthost feature on the scalix-box, but on another system with sendmail.

Have a try with (please don't run it against my servers - change it to your settings ,-)

Code: Select all

define(`SMART_HOST', `mail3.gigatec.de:mail2.gigatec.de')dnl


and don't forget to have a file called 'authinfo' in the /etc/mail directory containing

Code: Select all

AuthInfo:mail3.gigatec.de "U:USERNAME" "P:PASSWORD"
AuthInfo:mail2.gigatec.de "U:USERNAME" "P:PASSWORD"


Happy testing :wink:

Stephan

Posted: Tue Jul 03, 2007 9:15 am
by p.richterich
Hallo Matthias,

i just recognized it:
why do you use "spreeweg@web.de"? This seems to be your private address?!

from my point of view:
you register the domain "gks-berlin.de" and host this domain at strato.de.
you have to configure an email account for your domain and then you can login to the strato-pop3-server.

your email account could be "spreeweg@gks-berlin.de", but never @web.de!

(read also here: http://www.strato-faq.de/subcat.php4?su ... .2&extern=)

regards,

Patrick

PS: "mailin.rzone.de" is a domain of strato.de

Posted: Tue Jul 03, 2007 1:54 pm
by mascha
@Stephan @Patrick hi there@all,

I can send mail. In the log you will see the last two entries. One is made with mutt and the other from swa. So I can connect to post.strato.de and authenticate with password and username. But the "other" sendmail, (whatever it is) will not send it. This process will not use the smarthost. Please have a look. There is no DNS running on my box, just the hosts-file with localhost and the server IP like:

127.0.0.1 localhost
192.168.1.100 gwserver.gks-berlin.de gwserver

This is the mail.log

...
Jul 3 19:29:06 gwserver sendmail[14087]: l63HT69J014087: from=root, size=379687, class=0, nrcpts=1, msgid=<20070703172906.GA14081@gwserver.gks-berlin.de>, relay=root@localhost
Jul 3 19:29:06 gwserver sm-mta[14088]: l63HT6L4014088: from=<root@gwserver.gks-berlin.de>, size=379882, class=0, nrcpts=1, msgid=<20070703172906.GA14081@gwserver.gks-berlin.de>, proto=ESMTP, daemon=MSP-v4, relay=smmsp@localhost [127.0.0.1]
Jul 3 19:29:06 gwserver sendmail[14087]: l63HT69J014087: to=info@spreeweg.de, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=409687, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (l63HT6L4014088 Message accepted for delivery)
Jul 3 19:29:26 gwserver sm-mta[14099]: l63HT6L4014088: to=<info@spreeweg.de>, ctladdr=<root@gwserver.gks-berlin.de> (0/0), delay=00:00:20, xdelay=00:00:20, mailer=relay, pri=499882, relay=post.strato.de [192.67.198.79], dsn=2.0.0, stat=Sent (accepted with id i028cfj63FXXJv)
Jul 3 19:33:30 gwserver sm-mta[14125]: l63HXU3q014125: ruleset=check_rcpt, arg1=<info@spreeweg.de>, relay=scalix@localhost [127.0.0.1], reject=553 5.1.8 <info@spreeweg.de>... Domain of sender address mschaeffer@gks-berlin.de does not exist
Jul 3 19:33:30 gwserver sm-mta[14125]: l63HXU3q014125: from=<mschaeffer@gks-berlin.de>, size=0, class=0, nrcpts=0, proto=ESMTP, daemon=MTA-v4, relay=scalix@localhost [127.0.0.1]


Do I need a local DNS? The box uses the one from my DSL-Router.
Really don't know what to do...

Regards Matthias

Posted: Tue Jul 03, 2007 2:08 pm
by mascha
...here is the output from sendmail -bt with local address:

gwserver:/etc# sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 3,0 mschaeffer
canonify input: mschaeffer
Canonify2 input: mschaeffer
Canonify2 returns: mschaeffer
canonify returns: mschaeffer
parse input: mschaeffer
Parse0 input: mschaeffer
Parse0 returns: mschaeffer
ParseLocal input: mschaeffer
ParseLocal returns: mschaeffer
Parse1 input: mschaeffer
Parse1 returns: $# local $: mschaeffer
parse returns: $# local $: mschaeffer

and with extern address:

> gwserver:/etc# sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 3,0 info@spreeweg.de
canonify input: info @ spreeweg . de
Canonify2 input: info < @ spreeweg . de >
Canonify2 returns: info < @ spreeweg . de >
canonify returns: info < @ spreeweg . de >
parse input: info < @ spreeweg . de >
Parse0 input: info < @ spreeweg . de >
Parse0 returns: info < @ spreeweg . de >
ParseLocal input: info < @ spreeweg . de >
ParseLocal returns: info < @ spreeweg . de >
Parse1 input: info < @ spreeweg . de >
MailerToTriple input: < post . strato . de > info < @ spreeweg . de >
MailerToTriple returns: $# relay $@ post . strato . de $: info < @ spreeweg . de >
Parse1 returns: $# relay $@ post . strato . de $: info < @ spreeweg . de >
parse returns: $# relay $@ post . strato . de $: info < @ spreeweg . de >

Posted: Wed Jul 04, 2007 3:30 am
by p.richterich
mascha wrote:Jul 3 19:33:30 gwserver sm-mta[14125]: l63HXU3q014125: ruleset=check_rcpt, arg1=<info@spreeweg.de>, relay=scalix@localhost [127.0.0.1], reject=553 5.1.8 <info@spreeweg.de>... Domain of sender address mschaeffer@gks-berlin.de does not exist

please add these lines to your sendmail.mc (above mailer!!) and run sendmailconfig

Code: Select all

FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`accept_unqualified_senders')dnl


if it works, then you ve got a dns problem! :wink:
if i guess right, the mx entries of gks-berlin.de are wrong, you ll need atleast one mx entry that points to your "gwserver".

Posted: Wed Jul 04, 2007 8:46 am
by mascha
Patrick, I will spend you one night in Las Vegas! :lol:

That's, cool... now it works with the FEATURE-lines. But in my network there is actually no DNS to configure, the 4-Port-DSL-Router just brings the clients to the internet. ("hardwired DNS-Server") So I have to install a bind on the scalix box? Is there a way to do it just with a hosts file because I have only 3 boxes at all?

Many Thanks!

Regards,
Matthias