SMTP-AUTH with Sendmail

Discuss installation of Scalix software

Moderators: ScalixSupport, admin

tosch

SMTP-AUTH with Sendmail

Postby tosch » Wed Oct 25, 2006 5:03 am

I have installed scalix successful. The scalix version is 10.0.0.1 on SUSE 10.0.
My problem is I can't send any mails over the smtp.1und1.de relay server. If send a mail I get the folowing mail back:

Code: Select all

The original message was received at Mon, 16 Oct 2006 23:30:35
> +0200
> > > from localhost [127.0.0.1]
> > >
> > >    ----- The following addresses had permanent fatal errors -----
> > > <info@easytec-it.de>
> > >     (reason: 550 must be authenticated)
> > >
> > >    ----- Transcript of session follows -----
> > > ... while talking to smtp.1und1.de.:
> > > >>> DATA
> > > <<< 550 must be authenticated
> > > 550 5.1.1 <info@easyte.de>... User unknown
> > > <<< 554 no valid recipients


It seems it is a problem with the authentication.

I changed /etc/mail/auth/auth-info with following information:

Code: Select all

AuthInfo:smtp.1und1.de "U:mXXXXXX-32"  "P:XXXXXX"


and /etc/sendmail.cf with

Code: Select all

# "Smart" relay host (may be null)
DSsmtp.1und1.de



How can I configure sendmail that I can use SMTP-AUTH to make the authorisation?
Last edited by tosch on Fri Oct 27, 2006 2:15 am, edited 2 times in total.

anand_joshi
Scalix
Scalix
Posts: 63
Joined: Mon Oct 09, 2006 8:56 am
Contact:

Postby anand_joshi » Wed Oct 25, 2006 9:38 am

Its seems Anthenticated Relays is needed for your configuration, you can verify
it from the file /var/opt/scalix/sys/smtpd.cfg.The default configuration is something like below

RELAY accept 127.0.0.1
RELAY accept .mydomain.com
RELAY Log_Reject ALL

# extra rules added to prevent open relay usage
RECIPIENT Log_Reject *@*@*
RECIPIENT Log_Reject *%*
RECIPIENT Log_Reject *!*
RECIPIENT Log_Reject *#*@*

restart the sendmail using the below commands
omoff -wd 0 smtpd
omon smtpd

also please refer to the below link
http://www.scalix.com/community/viewtop ... ight=fixup

Thanks
Anand Joshi

tosch

Postby tosch » Fri Oct 27, 2006 2:15 am

Hi Joshi,

I have found the problem. Reason is not var/opt/scalix/sys/smtpd.cfg

In sendmail SMTP-AUTH was not configured.

Here are the steps to configure SMTP-AUTH with sendmail.

Code: Select all


Using sendmail as a client with AUTH
(This section has been written by Benji Fisher. Thanks!)
If you are using sendmail only to transfer e-mail from your local computer to a mail server that requires SMTP AUTH, follow these instructions. They assume that sendmail 8.12 or later, and other software, is already installed on your computer. You should probably be logged in as root to perform these steps.

Change directory to where your sendmail configuration files (sendmail.mc and sendmail.cf) are located, usually /etc/mail/.
Create a safe subdirectory (suggested name auth/):
  # mkdir auth
  # chmod 700 auth
 
Create a file with your authentication information (suggested name auth/client-info):
  AuthInfo:your.isp.net "U:root" "I:user" "P:password"
 
filling in your ISP's mail server, your user name, and your password. (Note: Earthlink, and perhaps other ISP's, requires your full e-mail address as a user name.)
Generate the authentication database and make both files readable only by root:
  # cd auth
  # makemap hash client-info < client-info
  # chmod 600 client-info*
  # cd ..
 
Add the following lines to your sendmail.mc file, filling in your ISP's mail server:
  define(`SMART_HOST',`your.isp.net')dnl
  define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
  FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
 
Generate sendmail.cf:
  # m4 sendmail.mc > sendmail.cf
 
Restart the sendmail daemon, e.g., (this depends on your OS):



Return to “Installation”



Who is online

Users browsing this forum: No registered users and 3 guests

cron