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 > relay certain adresses, block all others
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
comp.mail.sendmail Configuring and using the BSD sendmail agent.

relay certain adresses, block all others

Réponse
 
LinkBack Outils de la discussion
Vieux 16/09/2006, 10h00   #1
T. Valen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut relay certain adresses, block all others

Hi!

How do I configure sendmail so that it will relay certain addresses to
the mailer given in the mailertable and reject all other addresses?

My primary MX is not the machine on which I ready mail. Sendmail is
supposed to relay my mails to another machine which does the local
delivery. I tried this:

/etc/mail/mailertable:
MyDomain.de smtp:[address of my local mail-system]

/etc/mail/access:
To:foo@MyDomain.de RELAY
To:MyDomain.de error:5.7.0:550 user unknown

This is what I wanted to achieve: Mails to foo@MyDomain.de sould be
relayed to my local mailserver. All other mail should be rejected
(whitelisting).

I can't get this working. In the configuration above, all attempts to
send a mail to foo@MyDomain.de result in "Relaying Denied".

What makes me wonder is that the other way round (blacklisting, which is
not what I want to have) works as expected:

/etc/mail/access:
To:bogus@MyDomain.de error:5.7.0:550 user unknown
To:MyDomain.de RELAY

What can I do?

Thanks in advance!

Regards,
T.
  Réponse avec citation
Vieux 16/09/2006, 15h12   #2
Alexander Dalloz
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: relay certain adresses, block all others

On Sat, 16 Sep 2006 10:00:49 +0200 T. Valen wrote:

> How do I configure sendmail so that it will relay certain addresses to
> the mailer given in the mailertable and reject all other addresses?
>
> My primary MX is not the machine on which I ready mail. Sendmail is
> supposed to relay my mails to another machine which does the local
> delivery. I tried this:
>
> /etc/mail/mailertable:
> MyDomain.de smtp:[address of my local mail-system]
>
> /etc/mail/access:
> To:foo@MyDomain.de RELAY
> To:MyDomain.de error:5.7.0:550 user unknown
>
> This is what I wanted to achieve: Mails to foo@MyDomain.de sould be
> relayed to my local mailserver. All other mail should be rejected
> (whitelisting).


Above settings should work just fine.

> I can't get this working. In the configuration above, all attempts to
> send a mail to foo@MyDomain.de result in "Relaying Denied".


How is your access_db called from sendmail.mc? Omit an "-o" parameter if
existing to see if there is a problem with the access_db, to be seen when
the Sendmail daemon restarts.

> What makes me wonder is that the other way round (blacklisting, which is
> not what I want to have) works as expected:
>
> /etc/mail/access:
> To:bogus@MyDomain.de error:5.7.0:550 user unknown
> To:MyDomain.de RELAY


That configuration scheme relays all mail for MyDomain.de, except for
those addresses where you defined an error DSN for? If it works you then
have MyDomain.de not placed into class{w}, which is good and required.

> What can I do?


Post your sendmail.mc without comment lines. Which OS / release do you
run?

> Regards,
> T.


Alexander


--
Alexander Dalloz | Löhne, Germany | GPG http://pgp.mit.edu 0xB366A773
legal statement: http://www.uni-x.org/legal.html
Fedora Core 2 GNU/Linux on Athlon with kernel 2.6.11-1.35_FC2smp
Serendipity 15:01:31 up 9 days, 17:11, load average: 0.44, 0.38, 0.31

  Réponse avec citation
Vieux 16/09/2006, 23h40   #3
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: relay certain adresses, block all others

In article <pan.2006.09.16.13.12.30.987881@arcor.de> Alexander Dalloz
<adalloz@arcor.de> writes:
>On Sat, 16 Sep 2006 10:00:49 +0200 T. Valen wrote:
>
>>
>> /etc/mail/mailertable:
>> MyDomain.de smtp:[address of my local mail-system]
>>
>> /etc/mail/access:
>> To:foo@MyDomain.de RELAY
>> To:MyDomain.de error:5.7.0:550 user unknown
>>
>> This is what I wanted to achieve: Mails to foo@MyDomain.de sould be
>> relayed to my local mailserver. All other mail should be rejected
>> (whitelisting).

>
>Above settings should work just fine.


No, user@domain entries are not checked for RELAY unless you use the
undocumented

define(`_RELAY_FULL_ADDR_', 1)

setting.

--Per Hedeland
per@hedeland.org
  Réponse avec citation
Vieux 16/09/2006, 23h40   #4
Per Hedeland
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: relay certain adresses, block all others

In article <pan.2006.09.16.13.12.30.987881@arcor.de> Alexander Dalloz
<adalloz@arcor.de> writes:
>On Sat, 16 Sep 2006 10:00:49 +0200 T. Valen wrote:
>
>>
>> /etc/mail/mailertable:
>> MyDomain.de smtp:[address of my local mail-system]
>>
>> /etc/mail/access:
>> To:foo@MyDomain.de RELAY
>> To:MyDomain.de error:5.7.0:550 user unknown
>>
>> This is what I wanted to achieve: Mails to foo@MyDomain.de sould be
>> relayed to my local mailserver. All other mail should be rejected
>> (whitelisting).

>
>Above settings should work just fine.


No, user@domain entries are not checked for RELAY unless you use the
undocumented

define(`_RELAY_FULL_ADDR_', 1)

setting.

--Per Hedeland
per@hedeland.org
  Réponse avec citation
Vieux 18/09/2006, 12h30   #5
T. Valen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: relay certain adresses, block all others

Per,

thank you so much! Now it finally works the way I want! Great!

T.

>>> /etc/mail/mailertable:
>>> MyDomain.de smtp:[address of my local mail-system]


>>> /etc/mail/access:
>>> To:foo@MyDomain.de RELAY
>>> To:MyDomain.de error:5.7.0:550 user unknown


>>> This is what I wanted to achieve: Mails to foo@MyDomain.de sould be
>>> relayed to my local mailserver. All other mail should be rejected
>>> (whitelisting).


>> Above settings should work just fine.


> No, user@domain entries are not checked for RELAY unless you use the
> undocumented
> define(`_RELAY_FULL_ADDR_', 1)
> setting.

  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 14h42.


Édité par : vBulletin®
Copyright ©2000 - 2009, 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,20756 seconds with 13 queries