Re: [FUG-BR] Ajuda de configuração do Qmail
Éderson Chimbida
chimbida em gmail.com
Qui Set 8 09:34:36 BRT 2005
Da pra usar o port qmail-conf !
# cd /usr/ports/mail/qmail-conf/
# make install clean
# rm /usr/local/etc/rc.d/qmail.sh
# hostname > /var/qmail/control/me
# hostname | sed "s/`hostname -s`.//g" > /var/qmail/control/defaultdomain
# hostname | sed "s/`hostname -s`.//g" > /var/qmail/control/plusdomain
# /var/qmail/bin/qmail-pop3d-conf /usr/local/vpopmail/bin/vchkpw
qmaill /var/qmail/service/pop3d
# cd /var/qmail/service/pop3d/
# echo ":allow" > tcp
# echo "200" > env/CONCURRENCY
# make
# /var/qmail/bin/qmail-smtpd-conf qmaild qmaill /var/qmail/service/smtpd
cd /var/qmail/service/smtpd/
# echo "200" > env/CONCURRENCY
# echo '127.0.0.1:allow,RELAYCLIENT=""' > tcp
# echo ":allow" >> tcp
# make
# cat run | sed "/qmaild/s//root/" > run.new
# mv run.new run
# cat run | sed
"/\/var\/qmail\/bin\/qmail-smtpd/s//\/var\/qmail\/bin\/qmail-smtpd
{vpopmail}/" > run.new
# mv run.new run
# cat run | sed "/{vpopmail}/s//\/usr\/local\/vpopmail\/bin\/vchkpw
{bintrue}/" > run.new
# mv run.new run
# cat run | sed "/{bintrue}/s//\/usr\/bin\/true/" > run.new
# mv run.new run
# chmod +x run
# echo '#\!/bin/sh' > /var/qmail/rc
# echo 'exec env - PATH="/var/qmail/bin:$PATH" \' >> /var/qmail/rc
# echo 'qmail-start ./Maildir/ /usr/local/bin/multilog t
/var/log/qmail qmaill' >> /var/qmail/rc
# chmod 755 /var/qmail/rc
# /var/qmail/bin/qmail-delivery-conf qmaill /var/qmail/service/qmail
# mkdir /var/log/qmail
# chmod 750 /var/log/qmail
# chown qmaill /var/log/qmail
Em 07/09/05, Marcio Antunes<mantunes.listas em gmail.com> escreveu:
> Pessoal,
>
> Alguem pode me disponibilizar algum exemplo do arquivo RUN do qmail-smtpd,
> pq o que eu tenho estou com duvidas, peguei este do qmailrocks:
>
> #!/bin/sh
> QMAILQUEUE="/var/qmail/bin/qmail-scanner-queue" ; export QMAILQUEUE
> QMAILDUID=`id -u vpopmail`
> NOFILESGID=`id -g vpopmail`
> MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
> LOCAL=`head -1 /var/qmail/control/me`
> if [ -z "$QMAILDUID" -o -z "$NOFILESGID" -o -z "$MAXSMTPD" -o -z "$LOCAL" ];
> then
> echo QMAILDUID, NOFILESGID, MAXSMTPD, or LOCAL is unset in
> echo /var/qmail/supervise/qmail-smtpd/run
> exit 1
> fi
> if [ ! -f /var/qmail/control/rcpthosts ]; then
> echo "No /var/qmail/control/rcpthosts!"
> echo "Refusing to start SMTP listener because it'll create an open relay"
> exit 1
> fi
> exec /usr/local/bin/softlimit -m *40000000* \
> /usr/local/bin/tcpserver -v -R -l "$LOCAL" -x /etc/tcp.smtp.cdb -c
> "$MAXSMTPD" \
> -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
> /var/qmail/bin/qmail-smtpd *your_domain.com* \
> /home/vpopmail/bin/vchkpw /usr/bin/true 2>&1
> O meu Qmal ainda nao consegui colocar para enviar e receber e-mail, ja fiz
> diversas vezes e nao consegui,
> alguem pode me ajudar.
>
> Márcio Antunes
> _______________________________________________
> Freebsd mailing list
> Freebsd em fug.com.br
> http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br
>
_______________________________________________
Freebsd mailing list
Freebsd em fug.com.br
http://mail.fug.com.br/mailman/listinfo/freebsd_fug.com.br
Mais detalhes sobre a lista de discussão freebsd