Page 1 of 1
SMTP Relay (of "1and1") with Auth
Posted: Tue Jan 24, 2006 3:34 am
by arb
Hello.
I have a problem with the config of a SMTP-Relay to my provider "1and1". I found a lot of information to change some config files, like smtpd.cfg from scalix or the sendmail.cfg, but no changes works.
the situation: i have scalix as my mailserver and a dynamic dns service for incoming and outgoing mails. but mails with an dynamic ip-range will be catch as spam. so there is a possibility to send all mails over the smtp-relay-server of "1und1". this smtp-relay-server needs auth to connect and accept all outgoing mails.
so far, my question now, how to configure scalix for this situation?
Thanks for all help,
arb
Posted: Tue Jan 24, 2006 3:52 am
by ScalixSupport
Hi. If you click on Search and then search for "authsmtp" you should fiind a recent thread on this very subject.
Thanks,
Rachel
SMTP-Relay with Scalix
Posted: Tue Jan 24, 2006 8:30 am
by arb
thanks for your help, but it doesn´t work.
I put this line
AuthInfo:smtp.domain.com "U:loginname" "I:loginname" "P:password"
into the /etc/mail/access file. Is it the only thing i must do to sent over the smtp-relay (smarthost)? scalix doesn`t take this changes!
greetz
arb
Re: SMTP Relay (of "1and1") with Auth
Posted: Tue Jan 24, 2006 9:07 am
by ScalixSupport
arb wrote:Hello.
I have a problem with the config of a SMTP-Relay to my provider "1and1". I found a lot of information to change some config files, like smtpd.cfg from scalix or the sendmail.cfg, but no changes works.
the situation: i have scalix as my mailserver and a dynamic dns service for incoming and outgoing mails. but mails with an dynamic ip-range will be catch as spam. so there is a possibility to send all mails over the smtp-relay-server of "1und1". this smtp-relay-server needs auth to connect and accept all outgoing mails.
so far, my question now, how to configure scalix for this situation?
Thanks for all help,
arb
Hi,
the first thing you need to check up on is how to get sendmail to use a relay host. This is a good start.
http://www.google.com/search?hl=de&q=sendmail+relay+host&btnG=Google-Suche&lr=
Once you have that setup, you can add authentication to that setup. This is explained here:
http://home.rhein-zeitung.de/%7Ewwilhelm/smtpauth.shtml
Your setup so far cannot work. Please revert the changes.
Cheers,
Sascha.
Posted: Tue Jan 31, 2006 10:46 am
by koxbox
@arb:
Could you please paste your final setup? I have the same problems with 1und1.
Thx in advance
Posted: Tue Jan 31, 2006 7:45 pm
by ScalixSupport
Hi Koxbox,
What have you tried so far? Have you updated your /etc/mail/access file? Have you updated your sendmail.cf file so it includes a smarhost? Have you restarted sendmail?
Thanks,
Rachel
Posted: Thu Feb 02, 2006 6:33 pm
by Clemens
I´ve tried setting up 1and1 as an authenticated relay as well but had no luck at all until I installed Suse 10. Although I could authenticate with other servers, it did not seem to work with 1and1 and Suse 9.3.
Using exactly the same method it worked flawlessly in Suse 10... weird...
Clemens
Posted: Fri Feb 03, 2006 9:52 am
by koxbox
I'm not quite sure what to do. At least I'm under heavy pressure because my company cannot send email to certain hosts that dont accept dynamic IPs. Is there anyone who could help me getting this to work? Maybe by ssh? Thx in advance.
koxbox
Posted: Fri Feb 03, 2006 1:38 pm
by ScalixSupport
Hi Koxbox,
What OS are you using and what version? Also, where are you located? I posted a message previously asking what you've done so far, could you go back and answer that so we know what's been done so far?
Thanks,
Rachel
Posted: Fri Feb 03, 2006 2:17 pm
by koxbox
I'm running Suse 9.3 and I'm located in Germany. My problem is I cannot use an external SMTP as smarthost.
What I basically did is editing sendmail.cf and give it a DS line like "DSsmtp.1und1.com".
Then I edited /etc/mail/access with the proper authentication data which had no effect.
"AuthInfo:smtp.1und1.com "U:user" "I:user" "P:pass""
After that i put that info to /etc/mail/default-auth-info which didnt do the job, too.
Code: Select all
for example: echo bla|mail hv.schm@web.de ->
Feb 3 17:59:18 SERVER1 sendmail[7268]: k13GxFNx007268: from=<root@server1.gbg-worms.de>, size=432, class=0, nrcpts=1, msgid=<43E38BE2.mail5LR1N2DAS@server1.gbg-worms.de>, proto=ESMTP, daemon=Daemon0, relay=localhost.localdomain [127.0.0.1]
Feb 3 17:59:18 SERVER1 sendmail[7264]: k13GxEhk007264: to=hv.schm@web.de, ctladdr=root (0/0), delay=00:00:04, xdelay=00:00:03, mailer=relay, pri=30243, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k13GxFNx007268 Message accepted for delivery)
Feb 3 17:59:19 SERVER1 sendmail[7272]: STARTTLS=client, relay=smtp.1und1.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DES-CBC3-SHA, bits=168/168
Feb 3 17:59:21 SERVER1 sendmail[7272]: k13GxFNx007268: to=<hv.schm@web.de>, ctladdr=<root@server1.gbg-worms.de> (0/0), delay=00:00:03, xdelay=00:00:03, mailer=relay, pri=120432, relay=smtp.1und1.com. [212.227.15.129], dsn=5.1.1, stat=User unknown
Feb 3 17:59:22 SERVER1 sendmail[7272]: k13GxFNx007268: k13GxMNx007272: DSN: User unknown
Now I'm really stuck. Is there anyone who can repair this? I could grant ssh access if you wanted to.
Greets,
koxbox[url][/url]
Posted: Mon Feb 06, 2006 8:49 am
by ScalixSupport
koxbox wrote:I'm running Suse 9.3 and I'm located in Germany. My problem is I cannot use an external SMTP as smarthost.
What I basically did is editing sendmail.cf and give it a DS line like "DSsmtp.1und1.com".
Then I edited /etc/mail/access with the proper authentication data which had no effect.
"AuthInfo:smtp.1und1.com "U:user" "I:user" "P:pass""
After that i put that info to /etc/mail/default-auth-info which didnt do the job, too.
Code: Select all
for example: echo bla|mail hv.schm@web.de ->
Feb 3 17:59:18 SERVER1 sendmail[7268]: k13GxFNx007268: from=<root@server1.gbg-worms.de>, size=432, class=0, nrcpts=1, msgid=<43E38BE2.mail5LR1N2DAS@server1.gbg-worms.de>, proto=ESMTP, daemon=Daemon0, relay=localhost.localdomain [127.0.0.1]
Feb 3 17:59:18 SERVER1 sendmail[7264]: k13GxEhk007264: to=hv.schm@web.de, ctladdr=root (0/0), delay=00:00:04, xdelay=00:00:03, mailer=relay, pri=30243, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (k13GxFNx007268 Message accepted for delivery)
Feb 3 17:59:19 SERVER1 sendmail[7272]: STARTTLS=client, relay=smtp.1und1.com., version=TLSv1/SSLv3, verify=FAIL, cipher=DES-CBC3-SHA, bits=168/168
Feb 3 17:59:21 SERVER1 sendmail[7272]: k13GxFNx007268: to=<hv.schm@web.de>, ctladdr=<root@server1.gbg-worms.de> (0/0), delay=00:00:03, xdelay=00:00:03, mailer=relay, pri=120432, relay=smtp.1und1.com. [212.227.15.129], dsn=5.1.1, stat=User unknown
Feb 3 17:59:22 SERVER1 sendmail[7272]: k13GxFNx007268: k13GxMNx007272: DSN: User unknown
Now I'm really stuck. Is there anyone who can repair this? I could grant ssh access if you wanted to.
Greets,
koxbox[url][/url]
Looks great to me, except that the user is unknown. Try sending to a known-to-work address.
Cheers,
Sascha.
Posted: Mon Feb 06, 2006 5:28 pm
by ScalixSupport
Hi Koxbox,
Please see the posting from Clemens just above yours. In that he states that he couldn't connect to 1and1 with SuSE 9.3 either and an upgrade to SuSE 10 resolved it. So, it sounds like that is the path of least resistence.
If you want someone to work with you either on-site or via SSH we can put you in touch with a couple of our German partners who may be willing to work with you on a time and materials basis. I don't know how much they would charge for this type of work, but I'm sure they would be happy to provide a quote. Let me know if you're interested and I'll point them in your direction.
Thanks,
Rachel