|
|
|
|
||||||
| comp.mail.sendmail Configuring and using the BSD sendmail agent. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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. |
|
![]() |
| Outils de la discussion | |
|
|