View previous topic :: View next topic |
Author |
Message |
geforce l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Cars/5.gif)
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Sun Sep 11, 2005 3:46 pm Post subject: [QMAIL] Passage de Qmail a Postfix ? |
|
|
Bonjour,
Ca fait longtemps que j'essaie de faire fonctionne le SMTP de qmail, il ne repond qu'a localhost ou au reseau local.
C'est dommage, je l'aimais bien moi
Peu importe, je pense me tourner vers postfix...
J'aimerais savoir si l'equivalent de Qmail-admin existe pour postfix ou tout simplement s'il serait compatible avec postfix ??
Merci !
Phil _________________ http://tilde.club/~geforce/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
babykart Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/137336118953f8950cad867.jpg)
Joined: 08 Oct 2004 Posts: 415
|
Posted: Mon Sep 12, 2005 5:55 pm Post subject: |
|
|
c'est étonnant ton histoire de qmail qui n'écoute que sur le localhost et le réseau local.... _________________ >> Gentoo-FR <<
----- |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
geforce l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Cars/5.gif)
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Mon Sep 12, 2005 10:18 pm Post subject: |
|
|
je suis presque sur que c'est tcprules le probleme... mais bon...
Je peux toujours poster mes fichiers de config si quelqu'un croit etre capable de me depanner
Phil _________________ http://tilde.club/~geforce/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
babykart Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/137336118953f8950cad867.jpg)
Joined: 08 Oct 2004 Posts: 415
|
Posted: Mon Sep 12, 2005 11:48 pm Post subject: |
|
|
je ne crois rien, mais cela ne coute rien de les poster, on'sait jamais... ![Question :?:](images/smiles/icon_question.gif) _________________ >> Gentoo-FR <<
----- |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaviXX n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 May 2005 Posts: 46
|
Posted: Tue Sep 13, 2005 8:22 am Post subject: |
|
|
Salut,
Si tu veut un coup de main pour configurer ton qmail y a aucun soucis.
Les restrictions auquelles tu faisait façe doivent être le résultat d'une configuration "sécuritaire" qui évite de devenir "open-relay".
si tu quitte qmail pour postfix pour éviter le problème, cc'est pas top la solution.
Fais moi signe, je t'aiderais. _________________ David CHANIAL
sdfrance.com - Location de serveurs dédiés infogérés
Serveurs sous Gentoo/Linux |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
geforce l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Cars/5.gif)
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Tue Sep 13, 2005 10:28 pm Post subject: |
|
|
Oui S'il vous plait ....
J'ai trouver quelqu'un qui avait le meme probleme que moi... Simplement , si je clique pour avoir le message suivant, ca fait Error Forbidden
Voici a quoi correspond le probleme:
Quote: | hello all,
I'm having a problem that I just can seem to find a solution for after days
of searching. I am running qmail on debian linux 2.2.r3 kernel 2.4.9. I
installed qmail per LWQ. when I telnet to port 25 locally or from anywhere
inside my class c net tcpserver picks up the connect fine. however, if I try
to connect from anywhere outside my class c, tcpserver ignores the connect
attemps, and I get a time-out error. I am not running tcpwrappers(or inetd
for that matter), nor any firewall that might restrict access from outside
my own net. I have used tcpdump to make sure that the NIC is recieving the
packets, which it is, tcpserver just seems to ignore them for reasons
unknown to me. Anyone who can solve this problem will have my undying
respect.
Thanks in advance,
soren |
Il rapporte le meme probleme que moi : Si je me connecte au serveur SMTP en Localhost a a partir du reseau du serveur ca fonctionne #1... SInon c'est rien du tout....
La seule difference avec lui c'est que j'ai Tcp-wrappers d'emergé..
J'apprecierais ÉNORMÉMENT si quelqu'un pouvait m'aider
Merci !
Phil _________________ http://tilde.club/~geforce/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
babykart Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/137336118953f8950cad867.jpg)
Joined: 08 Oct 2004 Posts: 415
|
Posted: Wed Sep 14, 2005 2:33 am Post subject: |
|
|
est-ce que tu peux poster ton /etc/tcprules.d/tcp.qmail-smtp stp... _________________ >> Gentoo-FR <<
----- |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
geforce l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Cars/5.gif)
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Wed Sep 14, 2005 2:37 am Post subject: |
|
|
Quote: |
################## START OF tcp.qmail-smtp #######################
#
# CHANGE THIS IP ADDRESS TO THE INTERNAL IP ADDRESS OF YOUR MAIL SERVER
206.47.106.169:allow,RELAYCLIENT="",RBLSMTPD=""
#-----------------------------------------------------------------
# DONT ALLOW THESE IPS TO SEND MAIL TO US :
# (Insert banned IP's here)
#
# These IP's pipe out heaps and heaps of spam
#
216.242.75.100-116:allow,RBLSMTPD="-Connections from this IP have been banned."
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"
#-----------------------------------------------------------------
# DON'T TOUCH THIS
127.0.0.1:allow,RELAYCLIENT="",RBLSMTPD=""
#-----------------------------------------------------------------
# DON'T TOUCH THIS
:allow
# You must run the below command after editing this file and then restart the /etc/init.d/svscan service in
# order to activate the changes you make here today.
#
# tcprules /etc/tcprules.d/tcp.qmail-smtp.cdb /etc/tcprules.d/.tcp.qmail-smtp.tmp < /etc/tcprules.d/tcp.qmail-smtp
#
############# END OF FILE #################
|
_________________ http://tilde.club/~geforce/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
geforce l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Cars/5.gif)
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Wed Sep 14, 2005 2:39 am Post subject: |
|
|
Voici d'autres fichiers:
/var/qmail/control/conf-smtpd:
Quote: |
################## START OF /var/qmail/control/conf-smtp #################
#
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}"
#
################## END OF /var/qmail/control/conf-smtp ###################
|
mon conf-common
Quote: | # Common Configuration file for all qmail daemons
QMAILDUID=`id -u qmaild`
NOFILESGID=`id -g qmaild`
QMAILLUID=`id -u qmaill`
# Qmail Control Dir (this is actually set in /etc/env.d/99qmail)
#QMAIL_CONTROLDIR=/var/qmail/control
TCPSERVER_HOST=0.0.0.0
TCPSERVER_PORT=${SERVICE}
TCPSERVER_OPTS="-H -R -l 0"
[ -d /etc/tcprules.d/ ] && TCPSERVER_RULESCDB=/etc/tcprules.d/tcp.qmail-${SERVICE}.cdb
[ ! -f "${TCPSERVER_RULESCDB}" ] && TCPSERVER_RULESCDB=/etc/tcp.${SERVICE}.cdb
SOFTLIMIT_OPTS="-m 16000000"
#export QMAILQUEUE=""
[ -e ${QMAIL_CONTROLDIR}/concurrencyincoming ] && MAXCONN=$(<${QMAIL_CONTROLDIR}/concurrencyincoming) || MAXCONN=40
LOG_OPTS="t" # 't' is for timestamp
LOG_MAXSIZE=2500000 # defalts to '99999' if empty
LOG_MAXCOUNT=10 # defaults to '10' if empty
[ -n "${LOG_MAXSIZE}" ] && LOG_OPTS="${LOG_OPTS} s${LOG_MAXSIZE}"
[ -n "${LOG_MAXCOUNT}" ] && LOG_OPTS="${LOG_OPTS} n${LOG_MAXCOUNT}"
LOG_DEST=/var/log/qmail/qmail-${SERVICE}d
#QMAIL_DISABLE_SANITY_CHECK=1 |
et voici le output de Code: | ps aux | grep tcpserver | grep -v grep |
Quote: |
qmaild 22319 0.0 0.1 2676 800 ? S Sep12 0:00 /usr/bin/tcpserver -H -R -l 0 -R -x /etc/tcprules.d/tcp.qmail-smtp.cdb -c 40 -u 201 -g 200 0.0.0.0 smtp relay-ctrl-check /var/qmail/bin/qmail-smtpd netrock.ca /var/vpopmail/bin/vchkpw /bin/true
|
_________________ http://tilde.club/~geforce/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
babykart Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/137336118953f8950cad867.jpg)
Joined: 08 Oct 2004 Posts: 415
|
Posted: Wed Sep 14, 2005 2:51 am Post subject: |
|
|
voici le mien
Code: | #
#------------------------------------------------------
# To update the database after changing this file, run:
# /var/qmail/bin/qmail-rulesupdate
#------------------------------------------------------
#
# 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 don't set RELAYCLIENT="", this means that the listed IP range
# will not be able to relay mail through our server
#
# A complete list of environment variables you can set are:
# AUTHPREPEND RBL SSLCERT
# AUTHREQUIRED RBLONLYHEADER SMTPAUTH
# BLOCKRELAYPROBE RCPTCHECK SMTP550DISCONNECT
# LDAPSOFTOK REJECTEXEC TARPITCOUNT
# LOGLEVEL RELAYCLIENT TARPITDELAY
# MAXRCPTCOUNT RETURNMXCHECK 421GREETING
# NOBOUNCE SANITYCHECK 550GREETING
# QMAILQUEUE SENDERCHECK
#
# You should read the QLDAPINSTALL file (included in the docs) for a
# detailed explanation of what these settings do. However, a reasonable
# example would be:
#
##Allow localhost to relay mail:
# 127.0.0.1:allow,RELAYCLIENT=""
##Allow five hosts on the LAN to relay mail. RBL lookups are off, but we still
## scan for viruses, SPAM, and properly formatted sender information
# 1.2.3.1-5:allow,RELAYCLIENT="",QMAILQUEUE="/var/qmail/bin/simscan",SANITYCHECK=""
##Allow a sixth host to relay mail with no checks:
# 1.2.3.6:allow,RELAYCLIENT=""
##Everyone else has to jump through hoops!
# :allow,SMTPAUTH="STARTTLS",RBL="",QMAILQUEUE="/var/qmail/bin/simscan",BLOCKRELAYPROBE="",RETURNMXCHECK="",SANITYCHECK="",REJECTEXEC=""
# Actual rules:
:allow
127.0.0.1:allow,RELAYCLIENT=""
192.168.0.:allow,RELAYCLIENT="" |
un chouilla mieux renseigné...
en espérant que cela t'aidera...
(le serveur en question a aussi une sortie publique...) _________________ >> Gentoo-FR <<
----- |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaviXX n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 May 2005 Posts: 46
|
Posted: Wed Sep 14, 2005 5:53 am Post subject: |
|
|
Salut,
Code: | :allow
127.0.0.1:allow,RELAYCLIENT=""
192.168.0.:allow,RELAYCLIENT="" |
Il faut que tu ait quelque chose comme ceci dans ton tcp.qmail-smtp
La dernière ligne 192.168.0. autorise qmail à relayer les mails arrivant du réseau local en 192.168.0.XXX.
une fois que tu as modifié tcp.qmail-smtp, tu dois compiler tes règles (rules) : Code: | cd /etc/tcprules.d/
make tcp.qmail-smtp.cdb |
Dis moi si ça fonctionne.
Sinon, donne moi plus d'infos sur ton réseau et sur le contenu de /etc/hosts.allow et /etc/hosts.deny
Cordialement, _________________ David CHANIAL
sdfrance.com - Location de serveurs dédiés infogérés
Serveurs sous Gentoo/Linux |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
geforce l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Cars/5.gif)
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Wed Sep 14, 2005 8:40 pm Post subject: |
|
|
Quote: |
Code: | :allow
127.0.0.1:allow,RELAYCLIENT=""
192.168.0.:allow,RELAYCLIENT="" |
|
Oui mais mon SMTP repond toujours pas d'en dehors du reseau...
Quote: |
Sinon, donne moi plus d'infos sur ton réseau et sur le contenu de /etc/hosts.allow et /etc/hosts.deny
Cordialement, |
Je n'ai pas de fichiers /etc/hosts.allow ou hosts.deny
Est-ce que Tcp-Wrappers pourrait etre mon probleme ??
J'sais pas si vous avez vu le gars que j'ai poste son message avec un probleme similaire au miens, il faisait reference a ca..
merci,
Phil _________________ http://tilde.club/~geforce/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
geforce l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Cars/5.gif)
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Wed Sep 14, 2005 9:24 pm Post subject: |
|
|
Okay, en faisant de la recherche, j'ai appris qu'il fallait recompiler UCSPI-TCP sans ipv6 support... Mais meme si je l'enleve ca donne rien...
emerge info | grep USE me donne:
Quote: |
USE="x86 X alsa apache2 apm arts authdaemond avi berkdb bitmap-fonts
cdr crypt cups curl eds emboss encode esd fam foomaticdb fortran gd
gdbm gif gnome gpm gstreamer gtk gtk2 imlib ipv6 jpeg kde ldap libg++
libwww mad maildir mikmod motif mozilla mp3 mpeg mysql ncurses nls ogg
oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl
snmp spell ssl tcltk tcpd tiff truetype truetype-fonts type1-fonts vorbis
xml2 xmms xv zlib userland_GNU kernel_linux elibc_glibc"
|
Pourtant ca ne correspond pas a mon /etc/make.conf... qui a meme -ipv6
A l'aide !
phil _________________ http://tilde.club/~geforce/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
geforce l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Cars/5.gif)
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Wed Sep 14, 2005 9:32 pm Post subject: |
|
|
Ah ! J'ai trouve...
C'etait dans /usr/portage/profiles/default-linux/x86/2005.0/make.defaults....
Je recompiler UCSPI-TCP et je reteste...
EDIT: RIEN fonctionne... Encore seulement du reseau local...
Phil _________________ http://tilde.club/~geforce/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaviXX n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 May 2005 Posts: 46
|
Posted: Thu Sep 15, 2005 5:16 am Post subject: |
|
|
Salut,
Quand tu dis Quote: | mon SMTP ne repond toujours pas d'en dehors du reseau | tu veut dire quoi ?
qu'il n'accepte pas de relayer les mails venant de l'extérieur ?
où bien, qu'il ne peut même pas reçevoir les messages qui sont destinés à cette machine ?
que donne un Code: | telnet ton_ip_publique 25 | ? _________________ David CHANIAL
sdfrance.com - Location de serveurs dédiés infogérés
Serveurs sous Gentoo/Linux |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
geforce l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Cars/5.gif)
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Thu Sep 15, 2005 8:48 pm Post subject: |
|
|
DaviXX wrote: | Salut,
Quand tu dis Quote: | mon SMTP ne repond toujours pas d'en dehors du reseau | tu veut dire quoi ?
qu'il n'accepte pas de relayer les mails venant de l'extérieur ?
où bien, qu'il ne peut même pas reçevoir les messages qui sont destinés à cette machine ?
que donne un Code: | telnet ton_ip_publique 25 | ? |
Il n'accepte pas les connections venant de l'exterieur..
Si je fais telnet mon_ip_publique 25 j'ai le connection timed out (il ne repond jamais) Je peux meme pas voir le "ESMTP READY" rien .... Il fait un Timeout.
Il peut recevoir des mails de l'exterieur par contre.. ( Je viens de m'envoyer un message a partir d'hotmail pour tester )
Phil _________________ http://tilde.club/~geforce/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
DaviXX n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 06 May 2005 Posts: 46
|
Posted: Fri Sep 16, 2005 5:40 am Post subject: |
|
|
Quel est ton adresse IP ?
envoie la en privé si tu veut.
=> si tu as pas la bannière c'est probablement un pare feu sur ta machine
=> si les mails arrivent a rentrer sur ton serveur, c'est contradictoire, ca veut dire que smtp marche au final.
viens en pv si tu veut pas diffuser ton ip.
Cordialement, _________________ David CHANIAL
sdfrance.com - Location de serveurs dédiés infogérés
Serveurs sous Gentoo/Linux |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
babykart Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/137336118953f8950cad867.jpg)
Joined: 08 Oct 2004 Posts: 415
|
Posted: Sat Sep 17, 2005 8:09 pm Post subject: |
|
|
sinon est-ce que tu as bien la ligne suivante lorsque que tu lances netstat -an
Code: | tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN |
_________________ >> Gentoo-FR <<
----- |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
geforce l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Cars/5.gif)
Joined: 29 Dec 2003 Posts: 654 Location: Canada
|
Posted: Sat Sep 17, 2005 9:48 pm Post subject: |
|
|
Oui.
DaviXX a tester et il parrait que ca marche #1...
Je comprends pas ...
J'ai fais tester a des amis et pourtant ca fonctionne pas.
en plus si je me trompes pas DaviXX est en france et moi au Canada, What the heck ?
Bien, si DaviXX peut se connecter, ca veut dire que ya des regles qui bloque des plages de IP ou j'sais pas quoi ?
Je me suis creer un fichier /etc/hosts.allow...
Mais ca repond toujours pas ... _________________ http://tilde.club/~geforce/ |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|