DoK – Where Dreams Come From

C'è chi vede il bicchiere mezzo pieno e chi lo vede mezzo vuoto… Per me, l'acqua che manca, è traboccata fuori ;)

Inviare mail su connessione EDGE/UMTS/GPRS

Posted on | agosto 1, 2007 | No Comments

Ieri ho finalmente provato una fantasticissima scheda H3G USB per navigare dal mi notebook in perfetta libertà e, da subito, ho dovuto affrontare l’impossibilità di invio EMAIL (posta SMTP bloccata…).

Come risolvere la tragedia ??? Impostando un fantastico “SMTP over SSL” sul mio server mail.

Ecco come fare:

1) Stop qmail:
# service qmail stop

2) Create the supervise directories for smtps
# mkdir -p /var/qmail/supervise/smtp-ssl/supervise /var/qmail/supervise/smtp-ssl/log/supervise” 3) Create a file named /var/qmail/supervise/smtp-ssl/run containing:
#!/bin/shQMAILDUID=`id -u vpopmail`
NOFILESGID=`id -g vpopmail`
MAXSMTPD=`cat /var/qmail/control/concurrencyincoming`
SMTPD=”/var/qmail/bin/qmail-smtpd”
TCP_CDB=”/etc/tcprules.d/tcp.smtp.cdb”
HOSTNAME=`hostname`
VCHKPW=”/home/vpopmail/bin/vchkpw”export SMTPS=1

exec /usr/bin/softlimit -m 12000000 \

/usr/bin/tcpserver -v -R -H -l $HOSTNAME -x $TCP_CDB -c “$MAXSMTPD” \
-u “$QMAILDUID” -g “$NOFILESGID” 0 465 \
$SMTPD $VCHKPW /bin/true 2>&1

4) Create a file named /var/qmail/supervise/smtp-ssl/log/run containing:
#!/bin/shLOGSIZE=`cat /var/qmail/control/logsize`
LOGCOUNT=`cat /var/qmail/control/logcount`
exec /usr/bin/setuidgid qmaill /usr/bin/multilog \
-t s$LOGSIZE n$LOGCOUNT /var/log/qmail/smtp-ssl 2>&15) Execute the following commands:
# chmod +x /var/qmail/supervise/smtp-ssl/run /var/qmail/supervise/smtp-ssl/log/run
# chown -R qmaill:qmail /var/qmail/supervise/smtp-ssl

6) Start qmail:
# service qmail start

Comments

Leave a Reply