Re: pb de configuration de sendmail

2002-07-18 Par sujet Thomas Nemeth
Le 18.07.02, acp.informatique.support1 a tapoté :

| Bonjour,

'jour.


| J'essaie désespérément de configurer sendmail sous Woody pour qu'ils
| réécrivent les adresses des expéditeurs locaux lors de l'envoi des messages
| vers l'extérieur de mon réseau connecté à internet par routeur numéris sans
| que la réécriture ne se fasse pour les messages locaux. Comme cela ne marche
| toujours pas je vous fourni le contenu de mon sendmail.mc afin d'avoir votre
| avis

...

| define(`_USE_ETC_MAIL_')dnl
| include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
| VERSIONID(`$Id: sendmail.mc, v 8.12.3-4 2002-04-15 17:35:56 cowboy Exp $')
| OSTYPE(`debian')dnl
| define(`ALIAS_FILE',`/etc/mail/aliases')
| DOMAIN(`debian-mta')dnl
| LOCAL_CONFIG
| define(`SMART_HOST', `smtp.wanadoo.fr')dnl
| FEATURE(`masquerade_envelope')dnl
| FEATURE(genericstable, `hash -o /etc/mail/genericstable')
| GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')
| FEATURE(`local_no_masquerade')dnl
| FEATURE(`use_cw_file')dnl
| FEATURE(`use_ct_file')dnl
| FEATURE(`mailertable')dnl
| FEATURE(`smrsh')dnl
| define(`confMAILER_NAME', `postmaster')dnl
| define(`confTO_QUEUEWARN', `')dnl
| define(`confTO_QUEUERETURN', `')dnl
| include(`/etc/mail/dialup.m4')dnl
| include(`/etc/mail/provider.m4')dnl
| MAILER_DEFINITIONS
| MAILER(local)dnl
| MAILER(smtp)dnl

Je n'ai pas vu de
GENERICS_DOMAIN(mailhub.mondomaine.tld mailhub)dnl
MASQUERADE_AS(mailhub.mondomaine.tld)dnl
FEATURE(always_add_domain)dnl
FEATURE(relay_hosts_only)dnl

Si après tout ça, le masquage en local se fait quand même
alors faire ce qui est indiqué là :
http://tnemeth.free.fr/linuxdocs/5.html#5.2.1


| Merci par avance pour votre aide

Avec plaisir.


Thomas
-- 
BOFH excuse #314:
You need to upgrade your VESA local bus to a MasterCard local bus.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



pb de configuration de sendmail

2002-07-18 Par sujet acp.informatique.support1
Bonjour,

J'essaie désespérément de configurer sendmail sous Woody pour qu'ils
réécrivent les adresses des expéditeurs locaux lors de l'envoi des messages
vers l'extérieur de mon réseau connecté à internet par routeur numéris sans
que la réécriture ne se fasse pour les messages locaux. Comme cela ne marche
toujours pas je vous fourni le contenu de mon sendmail.mc afin d'avoir votre
avis

En plus, il faudrait aussi que j'arrive à faire que sendmail n'envoie les
messages destiné à l'extérieur qu'après un certain temps afin que mon
routeur numéris ne s'allume pas toutes les   5 minutes.

divert(-1)dnl
#---
--
# $Sendmail: debproto.mc,v 8.12.3 2002-04-15 17:35:56 cowboy Exp $
#
# Copyright (c) 1998-2002 Richard Nelson.  All Rights Reserved.
#
# ./cf/debian/sendmail.mc.  Generated from sendmail.mc.in by configure.
#
# sendmail.mc prototype config file for building Sendmail 8.12.3
#
# Note: the .in file supports 8.7.6 - 8.12.3, but the generated
#   file is customized to the version noted above.
#
# This file is used to configure Sendmail for use with Debian systems.
#
# If you modify this file, you will have to regenerate /etc/mail/sendmail.cf
# by running this file through the m4 preprocessor via one of the following:
#   * `sendmailconfig`
#   * `make`
#   * `m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf`
# The first two options are preferred as they will also update other files
# that depend upon the contents of this file.
#
# The best documentation for this .mc file is:
# /usr/share/doc/sendmail-doc/cf.README.gz
#
#---
--
divert(0)dnl
#
#   Copyright (c) 1998-2002 Richard Nelson.  All Rights Reserved.
#
#  This file is used to configure Sendmail for use with Debian systems.
#
define(`_USE_ETC_MAIL_')dnl
include(`/usr/share/sendmail/cf/m4/cf.m4')dnl
VERSIONID(`$Id: sendmail.mc, v 8.12.3-4 2002-04-15 17:35:56 cowboy Exp $')
OSTYPE(`debian')dnl
define(`ALIAS_FILE',`/etc/mail/aliases')
DOMAIN(`debian-mta')dnl
dnl #
dnl # General defines
dnl #
dnl # SAFE_FILE_ENV: [undefined] If set, sendmail will do a chroot()
dnl #   into this directory before writing files.
dnl #   If *all* your user accounts are under /home then use that
dnl #   instead - it will prevent any writes outside of /home !
dnl #   define(`confSAFE_FILE_ENV', `')dnl
LOCAL_CONFIG
define(`SMART_HOST', `smtp.wanadoo.fr')dnl

FEATURE(`masquerade_envelope')dnl
FEATURE(genericstable, `hash -o /etc/mail/genericstable')
GENERICS_DOMAIN_FILE(`/etc/mail/genericsdomain')

FEATURE(`local_no_masquerade')dnl

FEATURE(`use_cw_file')dnl
FEATURE(`use_ct_file')dnl
FEATURE(`mailertable')dnl
FEATURE(`smrsh')dnl

define(`confMAILER_NAME', `postmaster')dnl
define(`confTO_QUEUEWARN', `')dnl
define(`confTO_QUEUERETURN', `')dnl
dnl #
dnl # Dialup/LAN connection overrides
dnl #
include(`/etc/mail/dialup.m4')dnl
include(`/etc/mail/provider.m4')dnl
dnl #
MAILER_DEFINITIONS
MAILER(local)dnl
MAILER(smtp)dnl

Merci par avance pour votre aide

Amicalement
James


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]