Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[QMAIL] Passage de Qmail a Postfix ?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Sun Sep 11, 2005 3:46 pm    Post subject: [QMAIL] Passage de Qmail a Postfix ? Reply with quote

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 :cry:


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
View user's profile Send private message
babykart
Guru
Guru


Joined: 08 Oct 2004
Posts: 415

PostPosted: Mon Sep 12, 2005 5:55 pm    Post subject: Reply with quote

c'est étonnant ton histoire de qmail qui n'écoute que sur le localhost et le réseau local....
_________________
>> Gentoo-FR <<
-----
Back to top
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Mon Sep 12, 2005 10:18 pm    Post subject: Reply with quote

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 :P



Phil
_________________
http://tilde.club/~geforce/
Back to top
View user's profile Send private message
babykart
Guru
Guru


Joined: 08 Oct 2004
Posts: 415

PostPosted: Mon Sep 12, 2005 11:48 pm    Post subject: Reply with quote

je ne crois rien, mais cela ne coute rien de les poster, on'sait jamais... :arrow: :idea: :?:
_________________
>> Gentoo-FR <<
-----
Back to top
View user's profile Send private message
DaviXX
n00b
n00b


Joined: 06 May 2005
Posts: 46

PostPosted: Tue Sep 13, 2005 8:22 am    Post subject: Reply with quote

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
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Tue Sep 13, 2005 10:28 pm    Post subject: Reply with quote

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 :cry:


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
View user's profile Send private message
babykart
Guru
Guru


Joined: 08 Oct 2004
Posts: 415

PostPosted: Wed Sep 14, 2005 2:33 am    Post subject: Reply with quote

est-ce que tu peux poster ton /etc/tcprules.d/tcp.qmail-smtp stp...
_________________
>> Gentoo-FR <<
-----
Back to top
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Wed Sep 14, 2005 2:37 am    Post subject: Reply with quote

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
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Wed Sep 14, 2005 2:39 am    Post subject: Reply with quote

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
View user's profile Send private message
babykart
Guru
Guru


Joined: 08 Oct 2004
Posts: 415

PostPosted: Wed Sep 14, 2005 2:51 am    Post subject: Reply with quote

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
View user's profile Send private message
DaviXX
n00b
n00b


Joined: 06 May 2005
Posts: 46

PostPosted: Wed Sep 14, 2005 5:53 am    Post subject: Reply with quote

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
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Wed Sep 14, 2005 8:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Wed Sep 14, 2005 9:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Wed Sep 14, 2005 9:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
DaviXX
n00b
n00b


Joined: 06 May 2005
Posts: 46

PostPosted: Thu Sep 15, 2005 5:16 am    Post subject: Reply with quote

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
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Thu Sep 15, 2005 8:48 pm    Post subject: Reply with quote

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
View user's profile Send private message
DaviXX
n00b
n00b


Joined: 06 May 2005
Posts: 46

PostPosted: Fri Sep 16, 2005 5:40 am    Post subject: Reply with quote

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
View user's profile Send private message
babykart
Guru
Guru


Joined: 08 Oct 2004
Posts: 415

PostPosted: Sat Sep 17, 2005 8:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
geforce
l33t
l33t


Joined: 29 Dec 2003
Posts: 654
Location: Canada

PostPosted: Sat Sep 17, 2005 9:48 pm    Post subject: Reply with quote

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

Quote:

qmail-smtpd: ALL



Mais ca repond toujours pas ...
_________________
http://tilde.club/~geforce/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
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