[plug] Slackware Mail Server

Craig Foster craig at fostware.net
Mon Dec 12 14:42:15 WST 2005


?
 
________________________________

From: plug-bounces at plug.org.au on behalf of Benjamin Woods
Sent: Sat 10-Dec-05 12:10 PM
To: plug at plug.org.au
Subject: [plug] Slackware Mail Server



Hey guys,

I am trying to set up a slackware mail server.

I want it to be accessible via pop3, imap and a webmail interface.
This is just on my home server, and purely so that I can learn.
I want to use slackware, and i want to use sendmail.
I was thinking squirrelmail would be good for the webmail.

My server is on a dynamic ip, and uses dyndns with kite.homelinux.net.
This reaches my router, which then forwards it to my server.
I have set up the port forwarding fine.

I currently have sendmail appearing to work (i think... how do i test
exactly?), and it can receive emails if i email bwoods at
kite.homelinux.net.

I have an email with iinet: woodsb02 at iinet.net.au
I am downloading those emails with fetchmail which polls every 120
seconds and uses pop3. I had a problem that when it downloaded the
emails, it would sometimes send an email to the sender which looked like
this:

------------BEGIN EMAIL----------------
X-Account-Key: account2
Delivered-To: USERNAME1 at iinet.net.au
X-BrightmailFiltered: true
X-Brightmail-Tracker: AAAAAA==
Date: Thu, 8 Dec 2005 18:21:24 +0800
From: FETCHMAIL-DAEMON at kite.homelinux.net
To: USERNAME1 at iinet.net.au

[-- Attachment #1 --]
[-- Type: text/plain, Encoding: 7bit, Size: 0.1K --]

Some addresses were rejected by the MDA fetchmail forwards to.


[-- Attachment #2 --]
[-- Type: message/delivery-status, Encoding: 7bit, Size: 0.2K --]

Reporting-MTA: dns; localhost

Final-Recipient: rfc822; woodsb02 at localhost
Last-Attempt-Date: Thu, 08 Dec 2005 18:21:24 +0800 (WST)
Action: failed
Status: 5.1.1
Diagnostic-Code: 550 5.1.1 <woodsb02 at localhost>... User unknown

[-- Attachment #3 --]
[-- Type: text/rfc822-headers, Encoding: 7bit, Size: 0.9K --]

Delivered-To: USERNAME2 at iinet.net.au
Received: (qmail 17684 invoked from network); 18 Oct 2005 22:56:43 -0000
Received: from unknown (HELO mail-ihug.icp-qv1-irony1.iinet.net.au)
([203.59.1.195])
(envelope-sender <USERNAME1 at iinet.net.au>)
by mail.iinet.net.au (qmail-ldap-1.03) with SMTP
for <USERNAME2 at iinet.net.au>; 18 Oct 2005 22:56:43 -0000
Received: from 203-59-86-124.dyn.iinet.net.au (HELO [10.1.1.3])
([203.59.86.124])
by mail-ihug.icp-qv1-irony1.iinet.net.au with ESMTP; 19 Oct 2005
06:56:41 +0800
X-BrightmailFiltered: true
X-Brightmail-Tracker: AAAAAQAAA+o=
Message-ID: <43557DA5.1000800 at iinet.net.au>
Date: Wed, 19 Oct 2005 06:56:37 +0800
From: Phil Woods <USERNAME1 at iinet.net.au>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: USERNAME2 at iinet.net.au
Subject: RTKD Envelope
Content-Type: multipart/mixed;
boundary="------------040506030209030903020901"
---------------END EMAIL--------------

Where USERNAME1 is the username of the sender and USERNAME2 is my
username at iinet. I think this was because woodsb02 didnt exist on my
server... i use bwoods there instead! So i created an alias:

cat /etc/mail/aliases
<snip>
woodsb02:       bwoods

I think its working again. is this right?

Now, my next problem is that my imap server thinks the sent mail folder
should be ~/Sent. I want all mail folders in ~/mail/ (except INBOX which
should be in /var/spool/mail/bwoods)... is this an ok proposal? how can
i fix this?

Next, is it hard to set up squirrel mail?

Finally... i will look at clamav and spamassassin for virus and spam
filtering.... i have no idea about either yet... that could be fun!

I do realise that sendmail is a beast and would take a LONG time to
fully learn. The setup that comes with slackware seems ok by default...
so i am hoping i can just dodge learning about this beast...


Any suggestions are appreciated.

Thanks in advance

--
From: Benjamin Woods
woodsb02 at iinet.net.au
Registered Linux User #372573

_______________________________________________
PLUG discussion list: plug at plug.org.au
http://www.plug.org.au/mailman/listinfo/plug
Committee e-mail: committee at plug.linux.org.au 


----------------------------------------------------------------

 
The fetchmail man page (about 80% down) shows
"
 poll pop.provider.net proto pop3 port 3111
        user "jsmith" with pass "secret1" is "smith" here
        user jones with pass "secret2" is "jjones" here keep

 This associates the local username âEUR~smithâEUR(tm) with the pop.provider.net username âEUR~jsmithâEUR(tm) and the local username âEUR~jjonesâEUR(tm) with the pop.provider.net username âEUR~jonesâEUR(tm). Mail for âEUR~jonesâEUR(tm) is kept on the server after download."

(source: http://catb.org/~esr/fetchmail/fetchmail-man.html)

This is the suggested way of handling remote to local username changes...

Squirrelmail is quite easy if you follow the instructions - and there are plenty of them! See http://www.squirrelmail.org/wiki/InstallingSquirrelMail for pretty much every permutation of mail server available :)

Regarding AV and SA, I'm a fan of exim-sa and qmail-smtpd, as spamassassin and clamav can work before the whole email is downloaded, limiting the downloads of virus-infected emails, and both allow blocking of MIME attachments by blocking attachments whose first bytes match a windows or DOS executable header

 

Regards,

 

CraigF.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: winmail.dat
Type: application/ms-tnef
Size: 8637 bytes
Desc: not available
URL: <http://lists.plug.org.au/pipermail/plug/attachments/20051212/613d4ae8/attachment.bin>


More information about the plug mailing list