CyberTek - the future at the present!
Google

Archive for september, 2009

Saslauthd authenticatie Sendmail

Geplaatst door: admin (24 sep)

Voor al diegenen die een Linux server met Sendmail service is nu noodzakelijk om de mogelijkheid tot het versturen door middel van authenticatie verlenen. Het is inderdaad vrij eenvoudig is om de optie in te schakelen, maar u dient zich ervan bewust dat sommige distributies als CentOS niet maken standaard beschikbaar, hier is hoe te repareren:

Installeer de sendmail-cf en cyrus-sasl indien niet aanwezig in het systeem, voor Redhat / CentOS:

[] Yum install sendmail-cf cyrus-sasl

Wijzig de sedmail.mc (/ etc / mail / sendmail.mc) en uncomment deze lijnen:

define ( `confAUTH_OPTIONS ',` A') dnl
TRUST_AUTH_MECH ( `LOGIN PLAIN ') dnl
define ( `confAUTH_MECHANISMS ',` LOGIN PLAIN') dnl

Voor de beveiliging anchequesta instelling:

DAEMON_OPTIONS ( `Port = smtp, Addr = 0.0.0.0, Name = MTA ') dnl

Nu moet je opnieuw compileren van de sendmail.cf bestand met het programma m4:

[] M4 / etc / mail / sendmail.mc> / etc / mail / sendmail.cf

Controleren en indien nodig het bestand / usr/lib/sasl2/Sendmail.conf als volgt:

pwcheckjnethod: saslauthd

Nu herstart sendmail en saslauthd

[] / Etc / init.d / saslauthd start

[] / Etc / init.d / sendmail restart

Ten slotte controleren we dat ons werk is gecorrigeerd:

[] Telnet localhost 25  

Trying 127.0.0.1 ...
Connected to localhost.
'^]'. Escape character is
220 xxxxx.xxxxx.xx ESMTP Sendmail 8.12.11/8.12.11; maand. De 23 augustus 2004 12:36:30 +0200

Aangezien we sendmail verschijnen reageert door te typen:

EHLO localhost

die zal worden beantwoord als alles goed gaat (de rode lijn die ons vertelt dat sendmail aanvaardt de authenticatie, naast de gewone login mogelijk een aantal andere methoden, is dit correct):

250-xxxxx.xxxxx.xx Hallo xxxxx.xxxxx.xx [127.0.0.1], blij u te ontmoeten
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP

Gepubliceerd in: linux, RedHat, tips
Powered by Cybertek - Hulp op afstand