View previous topic :: View next topic |
Author |
Message |
malty n00b
Joined: 25 Aug 2004 Posts: 37 Location: France Nice
|
Posted: Wed Jul 12, 2006 1:56 pm Post subject: [qmail] Impossible d'envoyer des emails |
|
|
Voilà depuis plusieurs jour que je suis en train de configurer mon serveur de messagerie, avec (Qmail + vpopmail + courier-imap) en suivant le tutorial
qui se trouve ici même si les version son assez ancienne.
Grâce a mon client mail Mozilla
Thunbird j'arrive à le loguer sur mon compte pop3 à recevoir des emails, mais le problème c'est pour en envoyer.
En effet il est impossible d'envoyer des emails même en suivant divers tutoriaux.
Je demande votre aide si vous plaie.
Mes paquets :
Code: |
mail-mta/qmail-1.03-r16
net-mail/courier-imap-4.0.1
net-mail/vpopmail-5.4.16
|
Mes fichiers de configuration :
/var/qmail/control/conf-smtpd
Code: |
# Configuration file for qmail-smtpd
# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/conf-smtpd-r16,v 1.2 2005/08/14 11:01:44 hansmi Exp $
# Stuff to run before tcpserver
#QMAIL_TCPSERVER_PRE=""
# Stuff to run qmail-smtpd
#QMAIL_SMTP_PRE=""
# Stuff to after qmail-smtpd
#QMAIL_SMTP_POST=""
# this turns off the IDENT grab attempt on connecting
#TCPSERVER_OPTS="${TCPSERVER_OPTS} -R"
# fixcrio inserts missing CRs at the ends of lines. See:
# http://cr.yp.to/ucspi-tcp/fixcrio.html
# http://cr.yp.to/docs/smtplf.html
# DO NOT enable this when you are using SSL/TLS (USE=ssl)!
#QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} fixcrio"
# You might want to use rblsmtpd with this, but you need to fill in a RBL
# server here first, see http://cr.yp.to/ucspi-tcp/rblsmtpd.html for more
# details
#QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} rblsmtpd -r RBL-SERVER"
# If you are interested in providing POP or IMAP before SMTP type relaying,
# emerge relay-ctrl, then uncomment the next 2 lines
#QMAIL_TCPSERVER_PRE="${QMAIL_TCPSERVER_PRE} envdir /etc/relay-ctrl relay-ctrl-chdir"
#QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} relay-ctrl-check"
# In /etc/courier-imap/authdaemonrc add the next line to the end:
#authmodulelist="${authmodulelist} relay-ctrl-allow"
# Then in /etc/courier-imap/{imapd,imapd-ssl,pop3d,pop3d-ssl}
# Add this at the end
#PRERUN="${PRERUN} envdir /etc/relay-ctrl relay-ctrl-chdir"
# This next block is for SMTP-AUTH
# WARNING: If you've installed qmail with USE=noauthcram, and you want to use
# the following programs, you proably need to install them.
# Example using cmd5checkpw
# See the manpage for cmd5checkpw for details on the passwords
#QMAIL_SMTP_CHECKPASSWORD="/bin/cmd5checkpw"
#QMAIL_SMTP_CHECKPASSWORD="/var/vpopmail/bin/vchkpw"
# Example for checkpassword-pam (emerge checkpassword-pam)
# Don't forget to make /usr/bin/checkpassword-pam sticky (see README.auth)
#QMAIL_SMTP_CHECKPASSWORD="/usr/bin/checkpassword-pam -s system-auth"
#[[ -n "${QMAIL_SMTP_CHECKPASSWORD}" ]] && {
# [[ -z "${QMAIL_SMTP_POST}" ]] && QMAIL_SMTP_POST=/bin/true
# QMAIL_SMTP_POST="${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_POST}"
#}
TCPSERVER_OPTS="${TCPSERVER_OPTS} -R"
QMAIL_TCPSERVER_PRE="${QMAIL_TCPSERVER_PRE} envdir /etc/relay-ctrl relay-ctrl-chdir"
QMAIL_SMTP_PRE="${QMAIL_SMTP_PRE} relay-ctrl-check"
QMAIL_SMTP_AUTHHOST=$(<${QMAIL_CONTROLDIR}/me)
[ -z "${QMAIL_SMTP_POST}" ] && QMAIL_SMTP_POST=/bin/true
QMAIL_SMTP_CHECKPASSWORD="/var/vpopmail/bin/vchkpw"
#QMAIL_SMTP_POST="${QMAIL_SMTP_AUTHHOST} ${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_POST}"
QMAIL_SMTP_POST="${QMAIL_SMTP_CHECKPASSWORD} ${QMAIL_SMTP_POST}"
|
_________________ http://www.cremantec.com/ |
|
Back to top |
|
|
malty n00b
Joined: 25 Aug 2004 Posts: 37 Location: France Nice
|
Posted: Wed Jul 12, 2006 7:25 pm Post subject: |
|
|
si j'utilise la commande
Code: |
echo teste | /var/qmail/bin/qmail-inject -a email@domain. com
|
Celà fonctionne parfaitement _________________ http://www.cremantec.com/ |
|
Back to top |
|
|
babykart Guru
Joined: 08 Oct 2004 Posts: 415
|
Posted: Wed Jul 12, 2006 8:49 pm Post subject: |
|
|
as-tu paramétré les tcprules pour qmail:
Code: | # vi /etc/tcprules.d/tcp.qmail-smtp |
_________________ >> Gentoo-FR <<
----- |
|
Back to top |
|
|
malty n00b
Joined: 25 Aug 2004 Posts: 37 Location: France Nice
|
Posted: Thu Jul 13, 2006 7:47 am Post subject: |
|
|
Normalement ca doit être bon
Code: |
# to update the database after changing this file, run:
# tcprules /etc/tcprules.d/tcp.qmail-smtp.cdb /etc/tcprules.d/.tcp.qmail-smtp.tmp < /etc/tcprules.d/tcp.qmail-smtp
#------------------------------------------------------
# DESCRIPTION OF THE RULES TO REMIND ME OF HOW THIS FILE WORKS
#
# If you set 'allow', this means that our mail server will allow
# the specified IP range to make a TCP connection to our server
#
# If you set 'deny', this means that our mail server will not allow
# the specified IP range to make a TCP connection to our server
#
# If you set RELAYCLIENT="", this means that the listed IP range is
# allowed to relay mail through our server
#
# If you dont set RELAYCLIENT="", this means that the listed IP range
# will not be able to relay mail through our server
#
# If you set RBLSMTPD="", this means that the listed IP ranges will
# not be checked against any of the RBL databases
#
# If you set RBLSMTPD="some text here", this means that an RBL lookup
# wont be performed, but the mail will be rejected with the specified
# text as a 4xx temp error message
#
# If you set RBLSMTPD="-some text here", this means that an RBL lookup
# wont be performed, but the mail will be rejected with the specified
# text as a 5xx perm error message
#
# If you do not set RBLSMTPD="" or ="some text", then an RBL lookup
# will be performed. If the lookup is successful, then RBLSMTPD will
# return your custom error message (as specified in the -r parameter
# in smtpd supervise script)
#
#-----------------------------------------------------
# HERE ARE THE RULES! :
#-----------------------------------------------------
# BYPASS OPEN RELAY CHECKING FOR THESE IPS :
#
# These IPs are ones that we have setup so that they arent RBL checked.
# We have done this because these particular servers are RBL listed,
# and for whatever reason they can't/won't fix their open relay problem,
# and we still want to be able to receive mail from them.
#
# reminder text goes here for this entry so we know the story...
#111.111.111.111:allow,RBLSMTPD=""
# reminder text goes here for this entry so we know the story...
#222.222.222.222:allow,RBLSMTPD=""
#
#-----------------------------------------------------------------
# DONT ALLOW THESE IPS TO SEND MAIL TO US :
#
# mailXX.offermail.net connecting regularly and sending invalid
# format messages causing exit with status 256 (bare linefeed normally)
# entry added 15/12/2001
# after looking at the mail coming from these servers it was found to be spam
#216.242.75.100-116:allow,RBLSMTPD="-Connections from this IP have been banned."
#
# heaps of spam from replyto of *@freeamateurhotties.com dec2001
#64.228.127.:allow,RBLSMTPD="-Connections refused due to spam from freeamateurhotties.com"
#154.20.94.:allow,RBLSMTPD="-Connections refused due to spam from freeamateurhotties.com"
#209.151.132.:allow,RBLSMTPD="-Connections refused due to spam from freeamateurhotties.com"
#216.18.85.:allow,RBLSMTPD="-Connections refused due to spam from freeamateurhotties.com"
#
#-----------------------------------------------------------------
# ALLOW THESE IPS TO RELAY MAIL THROUGH OUR SERVER
#
# Local class-c's from our LAN are allowed to relay,
# and we wont bother doing any RBL checking.
#123.123.123.:allow,RELAYCLIENT="",RBLSMTPD=""
#123.111.111.:allow,RELAYCLIENT="",RBLSMTPD=""
#
# Connections from localhost are allowed to relay
# (because the WebMail server runs on localhost),
# and obviously there is no point trying to perform an RBL check.
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD=""
#
#-----------------------------------------------------------------
# ALLOW EVERYONE ELSE TO SEND US MAIL
#
# Everyone else can make connections to our server,
# but not allowed to relay
# RBL lookups are performed
:allow
# If you are using qmail-scanner, this line here is the correct one to use
# instead (comment out the above ':allow' line FIRST) and applies that script
# to any mail coming in that is not from a host allowed to relay. You can
# change the value of the variable to any other value you desire to use custom
# scripts for example.
#:allow,QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue.pl"
192.168.1.100:allow,RELAYCLIENT="",RBLSMTPD=""
|
_________________ http://www.cremantec.com/ |
|
Back to top |
|
|
MaKKrO Apprentice
Joined: 04 Oct 2005 Posts: 265 Location: Paris - FRANCE
|
Posted: Thu Jul 13, 2006 9:39 am Post subject: |
|
|
t'essayer de faire :
Code: | qmail-inject user@domain << EOF
>blabla
>EOF
|
et check si tu l'a recu ! _________________ Loisirs = Gentoo / Taff = Gentoo / Pourtant Taff != Loisirs |
|
Back to top |
|
|
malty n00b
Joined: 25 Aug 2004 Posts: 37 Location: France Nice
|
Posted: Thu Jul 13, 2006 10:18 am Post subject: |
|
|
oui ta commande fonctionne, mais sous mon client mozilla thunderbird en smtp ssl ça ne fonctionne pas.
Il me dit Quote: |
l'envoi du message a échoué
Le message ne peut être envoyé à cause d'un échec de connection au serveur smtp nomduserveur.com
Le serveur est peut-être indisponible ou il refuse les connection smtp.
Veuillez vérifier que les paramètres de votre serveur SMTP sont corrects et essayer à nouveau ou sinon contactez votre administrateur réseau.
|
_________________ http://www.cremantec.com/ |
|
Back to top |
|
|
MaKKrO Apprentice
Joined: 04 Oct 2005 Posts: 265 Location: Paris - FRANCE
|
Posted: Thu Jul 13, 2006 11:32 am Post subject: |
|
|
Ca te donne quoi ? _________________ Loisirs = Gentoo / Taff = Gentoo / Pourtant Taff != Loisirs |
|
Back to top |
|
|
malty n00b
Joined: 25 Aug 2004 Posts: 37 Location: France Nice
|
Posted: Fri Jul 14, 2006 3:50 pm Post subject: |
|
|
Code: |
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 *:pop3s *:* LISTEN
tcp 0 0 localhost:mysql *:* LISTEN
tcp 0 0 *:pop3 *:* LISTEN
tcp 0 0 *:http *:* LISTEN
tcp 0 0 *:ftp *:* LISTEN
tcp 0 0 *:ssh *:* LISTEN
tcp 0 0 *:smtp *:* LISTEN
tcp 0 0 *:https *:* LISTEN
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 8679 /var/run/proftpd/proftpd.sock
unix 2 [ ACC ] STREAM LISTENING 8193 /var/lib/courier/authdaemon/socket.tmp
unix 2 [ ACC ] STREAM LISTENING 8072 /var/run/clamav/clamd.sock
unix 2 [ ACC ] STREAM LISTENING 7726 /var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 8286 /var/run/cgisock
unix 2 [ ACC ] STREAM LISTENING 7212 /dev/log
unix 2 [ ACC ] STREAM LISTENING 8289 /dev/gpmctl
|
_________________ http://www.cremantec.com/ |
|
Back to top |
|
|
malty n00b
Joined: 25 Aug 2004 Posts: 37 Location: France Nice
|
Posted: Fri Jul 14, 2006 8:34 pm Post subject: |
|
|
J'ai re-emerge qmail en écrasant conf-smtp en le laissant par défaut.
Si j'envois un mail à nom@free.fr ça ne fonctionne pas, mon clien mail me dit :
Quote: | Une erreur est survenue l'ors de l'envoi du courier. Le serveur de courrier a répondu : sorry that domain isn't in my list of allowed rcphosts (#5.7.1). Veuillez vérifier que votre adresse email dans les paramètres de comptes est correcte et essayer à nouveau. |
Autrement si jenvoie un mail à nom@mondedomain.com calà fonctionne parfaitement.
J'ai regarder rcpthosts et il figure les nom de domaine de mon serveur.
Je pence que si je rajoute free.fr je pourai envoyer des email vers le serveur de free.
Mais celà est problématique car je ne vais pas faire ça avec tout les serveurs mail.
Merci de vos réponces pour avancer. _________________ http://www.cremantec.com/ |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|