Problème avec Postfix - réseaux et sécurité - Linux et OS Alternatifs
Marsh Posté le 06-04-2003 à 19:07:12
beber.doneux01 a écrit : a mon avi tu dois simplement rajouter localhost à mydestination |
Salut,
Voici mon fichier main.cf qui fonctionne :
# SOFT BOUNCE
soft_bounce = yes
# LOCAL PATHNAME INFORMATION
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/lib/postfix
# QUEUE AND PROCESS OWNERSHIP
mail_owner = postfix
default_privs = nobody
# INTERNET HOST AND DOMAIN NAMES
myhostname = NomTaMachine.TonNomDomaine
mydomain = TonNomDomaine
# SENDING MAIL
myorigin = $myhostname
myorigin = $mydomain
# RECEIVING MAIL
inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain, $mydomain
# TRUST AND RELAY CONTROL
mynetworks = 192.168.4.0/24, 127.0.0.0/8
relay_domains = $mydestination
# INTERNET OR INTRANET
relayhost = NomTaMachine.TonNomDomaine:25
relayhost = $mydomain
# REJECTING UNKNOWN LOCAL USERS
#local_recipient_maps = $alias_maps unix:passwd.byname
# ADDRESS REWRITING
sender_canonical_maps = hashetc/postfix/canonical
# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
virtual_maps = hashetc/postfix/virtual
# "USER HAS MOVED" BOUNCE MESSAGES
# TRANSPORT MAP
default_transport = smtp
transport_maps = hashetc/postfix/transport
# ALIAS DATABASE
alias_maps = hashetc/postfix/aliases
alias_database = hashetc/postfix/aliases
# ADDRESS EXTENSIONS (e.g., user+foo)
# DELIVERY TO MAILBOX
mail_spool_directory = /var/spool/mail
# EXTENSION (address extension), DOMAIN (domain part of address),
# IF YOU USE THIS TO DELIVER MAIL SYSTEM-WIDE, YOU MUST SET UP AN
# ALIAS THAT FORWARDS MAIL FOR ROOT TO A REAL USER.
mailbox_command = /usr/bin/procmail -a $DOMAIN -d $LOGNAME
# JUNK MAIL CONTROLS
#header_checks = regexpetc/postfix/header_checks
# FAST ETRN SERVICE
#fast_flush_domains = $relay_domains
#fast_flush_domains =
# SHOW SOFTWARE VERSION OR NOT
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)
# PARALLEL DELIVERY TO THE SAME DESTINATION
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10
# DEBUGGING CONTROL
debug_peer_level = 2
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain
debugger_command =
PATH=/usr/binusr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5
# OTHER OPTIONS (Mandrake)
delay_warning_time = 4
# INSTALL-TIME CONFIGURATION INFORMATION
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-1.1.11/samples
readme_directory = /usr/share/doc/postfix-1.1.11/README_FILES
# LIMITATIONS
defaultdestination_recipient_limite = 20
maximal_queue_lifetime = 5
header_sizelimit = 102400
message_size_limit = 10240000
queue_min_free = 10000000
smtpd_error_sleep_time = 5
smtpd_soft_error_limit = 10
smtpd_hard_error_limit = 10
# SECURITY
disable_vrfy_command = yes
smtpd_helo_required = yes
#
smtpd_recipient_restrictions = check_client_access hashetc/postfix/clients, permit_mynetworks, check_relay_domains,reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient,reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_unauth_pipelining, reject_unauth_destination, check_recipient_access pcreetc/postfix/recipient_checks.pcre, check_sender_access hashetc/postfix/sender_checks,check_sender_access hashetc/postfix/freemail_access, check_client_access hashetc/postfix/client_checks, check_client_access pcreetc/postfix/client_checks.pcre, reject_rbl_client relays.ordb.org, reject_rbl_client inputs.relays.osirusoft.com, reject_rbl_client dialups.relays.osirusoft.com, reject_rbl_client spamhaus.relays.osirusoft.com, reject_rbl_client proxies.relays.monkeys.com, reject_rbl_client opm.blitzed.org, permit_mynetworks, check_relay_domains, maps_rbl_domains = rbl.maps.vix.com, dul.maps.vix.com, relays.ordb.org, bl.spamcop.net
smtpd_sender_restrictions = reject_unknown_sender_domain, check_client_access hashetc/postfix/clients, permit_mynetworks, check_relay_domains
smtpd_client_restrictions = check_client_access hashetc/postfix/access, check_relay_domains, reject_maps_rbl, permit_mynetworks, check_relay_domains, permit_auth_destination, reject_unauth_destination, reject_unknown_recipient_domain, permit_mx_backup, reject_unknown_client, reject_unknown_sender_domain, check_sender_access hashetc/postfix/access, reject_non_fqdn_sender, local_recipient_maps = $alias_maps unix:passwd.byname
header_checks = regexpetc/postfix/headers_checks
smtpd_restriction_classes = from_freemail_host
from_freemail_host = check_client_access hashetc/postfix/freemail_hosts, reject
Bon courage.
Marsh Posté le 06-04-2003 à 19:13:32
ton fichier hosts est bien renseigné ? ou alors, tu as un DNS qui résoud ton nom local ?
Marsh Posté le 06-04-2003 à 19:29:41
tu as bien fait les postmap virtual & co ?
ensuite pour les hots postfix a son propre truc
fais un postfix check tiens .
Marsh Posté le 06-04-2003 à 19:42:30
vegeta020786 a écrit : |
hum
tu as bien mis
Code :
|
car ton erreur la vient probablement de la
Marsh Posté le 06-04-2003 à 19:54:40
vegeta020786 a écrit : |
fais un petit ~$ postmap virtual
dans ton /etc/postfix
Marsh Posté le 06-04-2003 à 20:07:54
vegeta020786 a écrit : |
Citation : emmanuelle:~# whereis postmap |
va falloir compiler correctement le postfix hein
(ou mettre les bons chemins )
Marsh Posté le 06-04-2003 à 20:14:06
vegeta020786 a écrit : Bon c'était dans /usr/local/sbin/ |
dans ce cas cd /etc/postfix
/usr/local/sbin/postmap virtual
(en gros faut creer la base de donnée pour postfix )
exemple chez moi
Code :
|
P.S: Open c'est nul pour faire de l'ipv6 natif
Edit: smiley de mes deux
Edit2: (oui je me sers pas de virtual , donc je ne lui est pas postmaté la tete )
Marsh Posté le 06-04-2003 à 20:23:08
vegeta020786 a écrit : |
hum
en gros a chaque fois qu'il te dis qu'il ne trouve pas le toto.db
tu dois partir pour un postmap toto )
donc postmap va , postmap
Marsh Posté le 06-04-2003 à 20:51:32
aux grands maux les grands remedes
http://mikala.littleboboy.net/~mikala/postfix/
voila ma conf
(j'ai quelques domaines mx en backup mais pas la peine d'en tenir compte . )
Edit: l'ortografe dedieu
Marsh Posté le 06-04-2003 à 20:56:15
vegeta020786 a écrit : |
vivi
le chan officiel #copinedegruik est sur irc.tafiole.net
(je comprends mieux pk tu es sous *BSD
viens donc ;o)
Marsh Posté le 06-04-2003 à 17:43:06
a mon avi tu dois simplement rajouter localhost à mydestination