Revision [3541]

Last edited on 2009-10-12 01:16:16 by WikiAdmin
Additions:
==[[Exim Exim]]==


Revision [2310]

Edited on 2009-05-29 22:12:39 by WikiAdmin
Additions:
==mutt sending mail==
Set up sender in ~/.muttrc
set realname="foobar"
set from="foobar@blah.tld"
set use_from=yes
Sending attachments
mutt -i inline_attachment -a mime_attachment -s "subject line" recp1@domain.tld recp2@domain.tld < /dev/null


Revision [1828]

Edited on 2008-07-21 01:50:37 by WikiAdmin
Additions:
==[[OfflineImap OfflineImap]]==


Revision [1514]

Edited on 2008-03-19 02:00:23 by WikiAdmin
Additions:
===Procmail filter===
#Recipe 1
#Remove Make Money Fast spam
:0
* ^Subject:.*make money fast
/dev/null
#Recipe 2
#Accept e-mail from sfu addresses
:0
* ^From:.*sfu\.ca
/var/mail/kipling
#Recipe 3
#Accept everything addressed to me
:0
* ^TO_kipling
/var/mail/kipling
#Recipe 4
#Store everything else in junk_box file
:0
$HOME/junk_box


Revision [1500]

Edited on 2008-03-17 20:06:41 by WikiAdmin
Additions:
5) Patch netqmail
netqmail-1.06: http://www.qmail.org/netqmail-1.06.tar.gz
netqmail-tls patch: http://www.suspectclass.com/~sgifford/ucspi-tls/files/netqmail-1.05-ucspitls-0.3.patch
7) Create /var/qmail/ssl/env
8) Copy /var/qmail/supervise/qmail-smtpd to qmail-smtpd-ssl and edit the run file inside
8.1) add . /var/qmail/ssl/env to the top
8.2) replace tcpserver with sslserver -e -n
8.3) Change smtp to 587 if you wish to run smtp on port25, and smtps on port587
8.4) Generate certificate in /var/qmail/ssl
8.5) Start qmail
Deletions:
5) Patch netqmail http://www.suspectclass.com/~sgifford/ucspi-tls/files/netqmail-1.05-ucspitls-0.3.patch
wget http://www.qmail.org/netqmail-1.06.tar.gz
tar zxvf netqmail-1.06.tar.gz
cd netqmail-1.06
7) Reuse the certificate generated in the courier example
8) Create /var/qmail/ssl/env
9) Copy /var/qmail/supervise/qmail-smtpd to qmail-smtpd-ssl and edit the run file inside
9.1) add . /var/qmail/ssl/env to the top
9.2) replace tcpserver with sslserver -e -n
9.3) Change smtp to 587 if you wish to run smtp on port25, and smtps on port587
9.4) Generate certificate in /var/qmail/ssl
9.5) Start qmail


Revision [1499]

Edited on 2008-03-17 20:04:53 by WikiAdmin
Additions:
=== SSL on courier and qmail ===
This is extremely raw. Will clean this up when I get around to it.
==SSL and courier==
1) Generate a self-signed certificate
openssl genrsa -des3 -out server.key 2048
openssl rsa -in server.key -out server.key.plain
openssl req -new -x509 -key server.key -out server.crt -days 360 -set_serial 200711
2) Make a pem file
cat server.key.plain server.crt > server.pem
openssl gendh >> server.pem
chmod 400 server.*
3) Edit imapd-ssl / pop3d-ssl file
TLS_CERTFILE=/path/to/server.pem
START=YES
4) Start imapd-ssl and pop3d-ssl
5) Verify with openssl
openssl s_client -connect localhost:993
openssl s_client -connect localhost:995
==SSL and qmail==
1) Get ucspi-ssl http://www.superscript.com/ucspi-ssl/ucspi-ssl-0.70.tar.gz
2) Get ucspo-tls patch http://www.suspectclass.com/~sgifford/ucspi-tls/files/ucspi-ssl-0.70-ucspitls-0.1.patch
3) Extract ucspi-ssl and patch it
tar zxf xxx.tar.gz
patch -p1 < ../ucspi-ssl-0.70-ucspitls-0.1.patch
4) Compile and install it
package/compile base
package/install base
5) Patch netqmail http://www.suspectclass.com/~sgifford/ucspi-tls/files/netqmail-1.05-ucspitls-0.3.patch
wget http://www.qmail.org/netqmail-1.06.tar.gz
tar zxvf netqmail-1.06.tar.gz
cd netqmail-1.06
patch -p2 < ../netqmail-1.05-ucspitls-0.3.patch
6) Create qmailssl user
groupadd qmailssl
useradd -g qmailssl -d /var/qmail qmailssl
7) Reuse the certificate generated in the courier example
8) Create /var/qmail/ssl/env
%%
SSL_USER=qmailssl
SSL_GROUP=qmailssl
SSL_DIR=/var/qmail/ssl
# Enable UCSPI-TLS
UCSPITLS=1
# The rest are set based on the above three
SSL_CHROOT="$SSL_DIR"
CERTFILE="$SSL_DIR/cert"
KEYFILE="$SSL_DIR/key"
DHFILE="$SSL_DIR/dhparam"
SSL_UID=`id -u "$SSL_USER"`
if [ $? -ne 0 ]; then echo "No such user '$SSL_USER'" >&2; exit; fi
SSL_GID=`id -g "$SSL_GROUP"`
if [ $? -ne 0 ]; then echo "No such group '$SSL_GROUP'" >&2; exit; fi
# Export the variables used by other scripts
export SSL_CHROOT SSL_UID SSL_GID UCSPITLS CERTFILE KEYFILE DHFILE
%%
9) Copy /var/qmail/supervise/qmail-smtpd to qmail-smtpd-ssl and edit the run file inside
9.1) add . /var/qmail/ssl/env to the top
9.2) replace tcpserver with sslserver -e -n
9.3) Change smtp to 587 if you wish to run smtp on port25, and smtps on port587
9.4) Generate certificate in /var/qmail/ssl
umask 077
openssl req -new -x509 -keyout key.enc -out cert -days 360
openssl rsa -in key.enc -out key
openssl dhparam -out dhparam 1024
umask 022
9.5) Start qmail


Revision [1020]

Edited on 2007-10-10 01:53:00 by WikiAdmin
Additions:
==[[Spam Spam]]==


Revision [904]

Edited on 2007-08-22 18:48:57 by WikiAdmin
Additions:
==[[Vpopmail vpopmail]]==


Revision [743]

Edited on 2007-06-27 00:38:05 by WikiAdmin
Additions:
==[[Postfix Postfix]]==


Revision [207]

Edited on 2007-04-16 08:03:53 by WikiAdmin
Additions:

==[[Sendmail Sendmail]]==
==[[Qmail Qmail]]==
==[[Pop3imap pop3 & IMAP]]==
==[[Exchange Exchange]]==
Deletions:
~ [[Sendmail Sendmail]]
~ [[Qmail Qmail]]
~ [[Pop3imap pop3 & IMAP]]
~ [[Exchange Exchange]]


Revision [151]

Edited on 2007-04-14 22:03:59 by WikiAdmin
Additions:
{{parent page="HomePage"}}


Revision [60]

Edited on 2007-04-14 09:00:26 by WikiAdmin
Additions:
=== Mail servers I've had fun with ===
Deletions:
Mail servers I've had fun with


Revision [59]

Edited on 2007-04-14 09:00:15 by WikiAdmin
Additions:
~ [[Sendmail Sendmail]]
~ [[Qmail Qmail]]
~ [[Pop3imap pop3 & IMAP]]
~ [[Exchange Exchange]]
Deletions:
* [[Sendmail Sendmail]]
* [[Qmail Qmail]]
* [[Pop3imap pop3 & IMAP]]
* [[Exchange Exchange]]


Revision [58]

The oldest known version of this page was created on 2007-04-14 08:59:52 by WikiAdmin
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki