Page 1 of 1

Problem with Smarthost

Posted: Fri Jun 01, 2007 11:06 am
by eckki
Hello, i have got a problem with my sendmail....

i want to configure sendmail to send email ever the SMTP from GMX, but there is a problem...

here the log:
Jun 3 01:52:46 mail-server ldapmapper[6703]: (re)read scalix global config file
Jun 3 01:52:46 mail-server ldapmapper[6703]: found scalix instance mail-server
Jun 3 01:52:46 mail-server ldapmapper[6703]: (re)read relay config file /var/opt/scalix/mr/s/sys/smtpd.cfg
Jun 3 01:52:47 mail-server sendmail[6731]: l52NqkSs006731: from=<user(a)scalix.server>, size=1636, class=0, nrcpts=1, msgid=<"LB7E1D46E87AB4ca7A2357E32FE8D34DE.1180707493.scalix.server*"@MHS>, proto=ESMTP, daemon=Daemon0, relay=localhost [127.0.0.1]
Jun 3 01:52:47 mail-server sendmail[6759]: STARTTLS=client, relay=mail.gmx.de, version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
Jun 3 01:52:47 mail-server sendmail[6759]: l52NqkSs006731: SYSERR(root): db_map_open: cannot pre-open database /etc/mail/auth/auth-info.db: Operation not permitted
Jun 3 01:52:49 mail-server sendmail[6759]: l52NqkSs006731: to=<user@gmx.de>, delay=00:00:02, xdelay=00:00:02, mailer=smtp, pri=121636, relay=mail.gmx.de [213.165.64.20], dsn=5.0.0, stat=Service unavailable
Jun 3 01:52:49 mail-server sendmail[6759]: l52NqkSs006731: l52NqnSs006759: DSN: Service unavailable
Jun 3 01:52:49 mail-server sendmail[6768]: l52NqnSs006759: SYSERR(root): Cannot exec /opt/scalix/bin/unix.in: Operation not permitted
Jun 3 01:52:49 mail-server sendmail[6759]: l52NqnSs006759: smtpquit: mailer scalix_mime exited with exit value 69
Jun 3 01:52:49 mail-server sendmail[6759]: l52NqnSs006759: to=<user(a)scalix.server>, delay=00:00:00, xdelay=00:00:00, mailer=scalix_mime, pri=30000, relay=mail-server, dsn=4.0.0, stat=Deferred: Connection reset by scalix.server
Jun 3 01:52:49 mail-server sendmail[6759]: l52NqkSs006731: l52NqnSt006759: postmaster notify: Service unavailable
Jun 3 01:52:49 mail-server sendmail[6759]: l52NqnSt006759: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30000, dsn=2.0.0, stat=Sent


sendmail can't open the *.db file? :(


auth-info rights:
-rw------- 1 root root 1299 2007-06-03 01:57 auth-info
-rw------- 1 root root 12288 2007-06-03 01:57 auth-info.db
-rw------- 1 root root 72 2007-06-03 01:49 client-info
-rw-r----- 1 root root 12288 2007-06-03 00:43 client-info.db


my system: open suse 10.1 with scalix 11.0.4

i hope anybody can help me

need more infos? tell me
the smarthost i only need because the server is (a) home with dyn. ip... so the provider dont accept the mails from scalix... :(

intern i can send mail how much i want... ^^


eckki

Posted: Sat Jun 02, 2007 3:49 pm
by dougp23
Hard to tell, really. But read the logs more, there's more going on:

The line that starts with STARTTLS says "verify=FAIL" in it. Could this mean you are feeding the wrong information to GMX?
As far as not being able to open the DB, try changing the files to mode 644, that make them readable to anyone on the system. If you still get that the DB file can't be opened, then I don't know.
Then further down you have:
SYSERR(root): Cannot exec /opt/scalix/bin/unix.in: Operation not permitted
What's the file permissions on unix.in? Sounds like it's not executable. (you need to set the 1 bit at least for root and possibly group).

Good luck!

Posted: Sun Jun 03, 2007 8:56 am
by eckki
Hello and thx for your answer!

to the problems:

Jun 3 01:52:47 mail-server sendmail[6759]: STARTTLS=client, relay=mail.gmx.de, version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256


-> My Auth:
AuthInfo:mail.gmx.de "U:USER@gmx.de" "I:USER@gmx.de" "P:PASSWORD"


did i maybe need a special packed for ssl or so? Or can i test my connection to the gmx SMTP server?

to the rights:
I have changed the rights on the files auth-info, auth-info.db and unix.in
for testing on 777 or 644, but no changeing.. :(

i realy don't know what to do, but i hope that my authinfo is wrong.

but i have used some other authinfo configs+ "make all", but nothing has changed... :(


plz help me....

Posted: Mon Jun 04, 2007 5:00 am
by michael.jeier
First, I would try to just delete the auth-inf, auth-info.db and build it again. See http://www.sendmail.org/~ca/email/auth.html#smtpclient if you're doing it right.
You should check your /etc/sendmail.cf file, whether or not you have the right settings. (see http://www.scalix.com/forums/viewtopic.php?t=7560&postdays=0&postorder=asc&start=15 for my solution to this)

You might have to use a base 64 encoded password. Note that you don't use a colon but an equals sign then:
AuthInfo:mail.gmx.de "U:USER@gmx.de" "I:USER@gmx.de" "P=PASSWORD"
As as I know you cannot authenticate with you email adress at gmx but must use your customer id. That's a number which you see, when you login via their webclient. (This could have changed though..)

You can test your SMTP connection via telnet: "telnet mail.gmx.de 25". Google the basic SMTP commands or examples...

Posted: Mon Jun 04, 2007 2:47 pm
by eckki
thx for your answer!

2h late... but no change i have tested so much variants, but always:

Jun 6 14:29:48 mail-server sendmail[6387]: STARTTLS=client, relay=smtp2.google.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256


I have also make a new sendmail cf without scalix, and it also don't go... -.-

what is wrong that that dont go?

i hope someone can help me!

Posted: Tue Jun 05, 2007 12:36 pm
by michael.jeier
Is it really neccessary to authenticate via SSL (STARTTLS)?? I did not use this authetication mechanism, but you should take a look at this: http://www.sendmail.org/m4/starttls.html.

Posted: Sun Jun 17, 2007 1:17 pm
by eckki
thx 4 your help!

the problem was that smtp.gmx.net only allow GMX_USER@gmx.de for the mail adress, and not MY_USER@MYDOMAIN.MY

now i used the smtp from 1und1 and all things are right^^

thx
eckki