PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Logiciels d'hébergement > comp.mail.sendmail > auth and local-host-names
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

auth and local-host-names

Réponse
 
LinkBack Outils de la discussion
Vieux 16/05/2007, 17h14   #1
marche1990
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut auth and local-host-names

I have a system that I'm trying to run auth for relaying out to any host.
This bit I have working but it is now ignoring my local-host-names file.

I still have the following lines in sendmail.mc
define(`use_cw_file')dnl

If I try to send a mail to the system with one of the names in the local-
host-names file I get the following error.

550 5.7.1 Relaying denied. Proper authentication required.

If I send the mail to a valid user at the host name it accepts the email
without auth and accepts emails for relay with auth.

Any ideas why it is ignoring my local-host-names file or LOCAL_DOMAIN
directives.

Thanks in advance
Martin.

  Réponse avec citation
Vieux 16/05/2007, 18h41   #2
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: auth and local-host-names

In article <E5G2i.11521$804.2790@fe176.usenetserver.com> marche1990
<marche1990@systems-pro.net> writes:
>I have a system that I'm trying to run auth for relaying out to any host.
>This bit I have working but it is now ignoring my local-host-names file.
>
>I still have the following lines in sendmail.mc
>define(`use_cw_file')dnl
>
>If I try to send a mail to the system with one of the names in the local-
>host-names file I get the following error.
>
>550 5.7.1 Relaying denied. Proper authentication required.
>
>If I send the mail to a valid user at the host name it accepts the email
>without auth and accepts emails for relay with auth.
>
>Any ideas why it is ignoring my local-host-names file or LOCAL_DOMAIN
>directives.


You need to provide more details about your config, preferrably all of
it in the form of the .mc file. But in particular what you did to get
"auth for relaying out to any host" "working", since this is essentially
the default.

--Per Hedeland
per@hedeland.org
  Réponse avec citation
Vieux 16/05/2007, 23h33   #3
marche1990
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: auth and local-host-names

On Wed, 16 May 2007 17:41:48 +0000, Per Hedeland wrote:

> In article <E5G2i.11521$804.2790@fe176.usenetserver.com> marche1990
> <marche1990@systems-pro.net> writes:
>>I have a system that I'm trying to run auth for relaying out to any
>>host. This bit I have working but it is now ignoring my local-host-names
>>file.
>>
>>I still have the following lines in sendmail.mc define(`use_cw_file')dnl
>>
>>If I try to send a mail to the system with one of the names in the
>>local- host-names file I get the following error.
>>
>>550 5.7.1 Relaying denied. Proper authentication required.
>>
>>If I send the mail to a valid user at the host name it accepts the email
>>without auth and accepts emails for relay with auth.
>>
>>Any ideas why it is ignoring my local-host-names file or LOCAL_DOMAIN
>>directives.

>
> You need to provide more details about your config, preferrably all of
> it in the form of the .mc file. But in particular what you did to get
> "auth for relaying out to any host" "working", since this is essentially
> the default.
>
> --Per Hedeland
> per@hedeland.org


Please find bellow my sendmail.mc file

divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`linux')dnl
OSTYPE(`linux')dnl
define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')dnl
dnl define(`confLOG_LEVEL', `9')dnl
dnl define(`SMART_HOST', `smtp.your.provider')dnl
define(`confDEF_USER_ID', ``8:12'')dnl
dnl define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST', `True')dnl
define(`confDONT_PROBE_INTERFACES', `True')dnl
define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
dnl define(`confAUTH_OPTIONS', `A')dnl
define(`confAUTH_OPTIONS', `A p')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
PLAIN')dnl
define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/mail.pem')dnl
define(`confSERVER_KEY', `/etc/pki/tls/certs/mail.pem')dnl
define(`confTO_IDENT', `0')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa', `dnl')dnl
FEATURE(`smrsh', `/usr/sbin/smrsh')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
dnl define(`confMAX_DAEMON_CHILDREN', `20')dnl
dnl define(`confCONNECTION_RATE_THROTTLE', `3')dnl
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
define(`confLOCAL_MAILER', `cyrusv2')dnl
define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
DAEMON_OPTIONS(`Port=smtp, Name=MTA')dnl
dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
dnl FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`relay_based_on_MX')dnl
dnl LOCAL_DOMAIN(`localhost.localdomain')dnl
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl FEATURE(masquerade_envelope)dnl
dnl FEATURE(masquerade_entire_domain)dnl
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
MAILER(cyrusv2)dnl

  Réponse avec citation
Vieux 17/05/2007, 11h01   #4
marche1990
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: auth and local-host-names

On Wed, 16 May 2007 22:33:05 +0000, marche1990 wrote:

> On Wed, 16 May 2007 17:41:48 +0000, Per Hedeland wrote:
>
>> In article <E5G2i.11521$804.2790@fe176.usenetserver.com> marche1990
>> <marche1990@systems-pro.net> writes:
>>>I have a system that I'm trying to run auth for relaying out to any
>>>host. This bit I have working but it is now ignoring my
>>>local-host-names file.
>>>
>>>I still have the following lines in sendmail.mc
>>>define(`use_cw_file')dnl
>>>
>>>If I try to send a mail to the system with one of the names in the
>>>local- host-names file I get the following error.
>>>
>>>550 5.7.1 Relaying denied. Proper authentication required.
>>>
>>>If I send the mail to a valid user at the host name it accepts the
>>>email without auth and accepts emails for relay with auth.
>>>
>>>Any ideas why it is ignoring my local-host-names file or LOCAL_DOMAIN
>>>directives.

>>
>> You need to provide more details about your config, preferrably all of
>> it in the form of the .mc file. But in particular what you did to get
>> "auth for relaying out to any host" "working", since this is
>> essentially the default.
>>
>> --Per Hedeland
>> per@hedeland.org

>
> Please find bellow my sendmail.mc file
>
> divert(-1)dnl
> include(`/usr/share/sendmail-cf/m4/cf.m4')dnl VERSIONID(`linux')dnl
> OSTYPE(`linux')dnl
> define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')dnl dnl
> define(`confLOG_LEVEL', `9')dnl
> dnl define(`SMART_HOST', `smtp.your.provider')dnl
> define(`confDEF_USER_ID', ``8:12'')dnl dnl define(`confAUTO_REBUILD')dnl
> define(`confTO_CONNECT', `1m')dnl
> define(`confTRY_NULL_MX_LIST', `True')dnl
> define(`confDONT_PROBE_INTERFACES', `True')dnl
> define(`PROCMAIL_MAILER_PATH', `/usr/bin/procmail')dnl
> define(`ALIAS_FILE', `/etc/aliases')dnl define(`STATUS_FILE',
> `/var/log/mail/statistics')dnl define(`UUCP_MAILER_MAX', `2000000')dnl
> define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
> define(`confPRIVACY_FLAGS',
> `authwarnings,novrfy,noexpn,restrictqrun')dnl dnl
> define(`confAUTH_OPTIONS', `A')dnl define(`confAUTH_OPTIONS', `A p')dnl
> TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
> define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN
> PLAIN')dnl
> define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl define(`confCACERT',
> `/etc/pki/tls/certs/ca-bundle.crt')dnl define(`confSERVER_CERT',
> `/etc/pki/tls/certs/mail.pem')dnl define(`confSERVER_KEY',
> `/etc/pki/tls/certs/mail.pem')dnl define(`confTO_IDENT', `0')dnl
> dnl FEATURE(delay_checks)dnl
> FEATURE(`no_default_msa', `dnl')dnl
> FEATURE(`smrsh', `/usr/sbin/smrsh')dnl FEATURE(`mailertable', `hash -o
> /etc/mail/mailertable.db')dnl FEATURE(`virtusertable', `hash -o
> /etc/mail/virtusertable.db')dnl FEATURE(redirect)dnl
> FEATURE(always_add_domain)dnl
> FEATURE(use_cw_file)dnl
> FEATURE(use_ct_file)dnl
> dnl define(`confMAX_DAEMON_CHILDREN', `20')dnl dnl
> define(`confCONNECTION_RATE_THROTTLE', `3')dnl FEATURE(local_procmail,
> `', `procmail -t -Y -a $h -d $u')dnl FEATURE(`access_db', `hash -T<TMPF>
> -o /etc/mail/access.db')dnl FEATURE(`blacklist_recipients')dnl
> EXPOSED_USER(`root')dnl
> define(`confLOCAL_MAILER', `cyrusv2')dnl define(`CYRUSV2_MAILER_ARGS',
> `FILE /var/lib/imap/socket/lmtp')dnl DAEMON_OPTIONS(`Port=smtp,
> Name=MTA')dnl dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
> dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl dnl
> DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl dnl
> DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
> dnl FEATURE(`accept_unresolvable_domains')dnl dnl
> FEATURE(`relay_based_on_MX')dnl
> dnl LOCAL_DOMAIN(`localhost.localdomain')dnl dnl
> MASQUERADE_AS(`mydomain.com')dnl
> dnl FEATURE(masquerade_envelope)dnl
> dnl FEATURE(masquerade_entire_domain)dnl dnl
> MASQUERADE_DOMAIN(localhost)dnl
> dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl dnl
> MASQUERADE_DOMAIN(mydomainalias.com)dnl dnl
> MASQUERADE_DOMAIN(mydomain.lan)dnl MAILER(smtp)dnl
> MAILER(procmail)dnl
> MAILER(cyrusv2)dnl


Problem solved I had issues with domain name resolution.

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 02h07.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,14087 seconds with 12 queries