<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<title>[plug] Slackware Mail Server</title>
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman";}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:blue;
text-decoration:underline;}
p
{mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman";}
span.EmailStyle18
{mso-style-type:personal-reply;
font-family:Arial;
color:navy;}
@page Section1
{size:595.3pt 841.9pt;
margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
{page:Section1;}
-->
</style>
</head>
<body lang=EN-AU link=blue vlink=blue>
<div class=Section1>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Correct me if I’m wrong here, but if
someone was to send an email to <a href="mailto:bwoods@kite.homeip.net">bwoods@kite.homeip.net</a>,
their mail server would lookup the MX of the homeip.net domain and send it
there, which would then be returned, as I doubt theres a bwoods account on
homeip.net.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>To receive mail you need a working domain with
an MX record pointing to your mail server.<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Once again, if I’m wrong here,
please correct me!<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Shannon<o:p></o:p></span></font></p>
<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabindex=-1>
</span></font></div>
<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
Craig Foster [mailto:plug-bounces@plug.org.au] <b><span style='font-weight:
bold'>On Behalf Of </span></b>Craig Foster<br>
<b><span style='font-weight:bold'>Sent:</span></b> Monday, 12 December 2005
2:42 PM<br>
<b><span style='font-weight:bold'>To:</span></b> plug@plug.org.au<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [plug] Slackware Mail
Server</span></font><span lang=EN-US><o:p></o:p></span></p>
</div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>
<div id=idOWAReplyText4771>
<div>
<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'> <o:p></o:p></span></font></p>
</div>
</div>
<div>
<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>
<hr size=2 width="100%" align=center tabIndex=-1>
</span></font></div>
</div>
<div>
<p class=MsoNormal style='margin-bottom:12.0pt'><b><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
plug-bounces@plug.org.au on behalf of Benjamin Woods<br>
<b><span style='font-weight:bold'>Sent:</span></b> Sat 10-Dec-05 12:10 PM<br>
<b><span style='font-weight:bold'>To:</span></b> plug@plug.org.au<br>
<b><span style='font-weight:bold'>Subject:</span></b> [plug] Slackware Mail
Server</span></font><o:p></o:p></p>
</div>
<div>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Hey guys,<br>
<br>
I am trying to set up a slackware mail server.<br>
<br>
I want it to be accessible via pop3, imap and a webmail interface.<br>
This is just on my home server, and purely so that I can learn.<br>
I want to use slackware, and i want to use sendmail.<br>
I was thinking squirrelmail would be good for the webmail.<br>
<br>
My server is on a dynamic ip, and uses dyndns with kite.homelinux.net.<br>
This reaches my router, which then forwards it to my server.<br>
I have set up the port forwarding fine.<br>
<br>
I currently have sendmail appearing to work (i think... how do i test<br>
exactly?), and it can receive emails if i email bwoods at<br>
kite.homelinux.net.<br>
<br>
I have an email with iinet: woodsb02 at iinet.net.au<br>
I am downloading those emails with fetchmail which polls every 120<br>
seconds and uses pop3. I had a problem that when it downloaded the<br>
emails, it would sometimes send an email to the sender which looked like<br>
this:<br>
<br>
------------BEGIN EMAIL----------------<br>
X-Account-Key: account2<br>
Delivered-To: USERNAME1@iinet.net.au<br>
X-BrightmailFiltered: true<br>
X-Brightmail-Tracker: AAAAAA==<br>
Date: Thu, 8 Dec 2005 18:21:24 +0800<br>
From: FETCHMAIL-DAEMON@kite.homelinux.net<br>
To: USERNAME1@iinet.net.au<br>
<br>
[-- Attachment #1 --]<br>
[-- Type: text/plain, Encoding: 7bit, Size: 0.1K --]<br>
<br>
Some addresses were rejected by the MDA fetchmail forwards to.<br>
<br>
<br>
[-- Attachment #2 --]<br>
[-- Type: message/delivery-status, Encoding: 7bit, Size: 0.2K --]<br>
<br>
Reporting-MTA: dns; localhost<br>
<br>
Final-Recipient: rfc822; woodsb02@localhost<br>
Last-Attempt-Date: Thu, 08 Dec 2005 18:21:24 +0800 (WST)<br>
Action: failed<br>
Status: 5.1.1<br>
Diagnostic-Code: 550 5.1.1 <woodsb02@localhost>... User unknown<br>
<br>
[-- Attachment #3 --]<br>
[-- Type: text/rfc822-headers, Encoding: 7bit, Size: 0.9K --]<br>
<br>
Delivered-To: USERNAME2@iinet.net.au<br>
Received: (qmail 17684 invoked from network); 18 Oct 2005 22:56:43 -0000<br>
Received: from unknown (HELO mail-ihug.icp-qv1-irony1.iinet.net.au)<br>
([203.59.1.195])<br>
(envelope-sender <USERNAME1@iinet.net.au>)<br>
by mail.iinet.net.au (qmail-ldap-1.03) with SMTP<br>
for <USERNAME2@iinet.net.au>; 18 Oct 2005 22:56:43 -0000<br>
Received: from 203-59-86-124.dyn.iinet.net.au (HELO [10.1.1.3])<br>
([203.59.86.124])<br>
by mail-ihug.icp-qv1-irony1.iinet.net.au with ESMTP; 19 Oct 2005<br>
06:56:41 +0800<br>
X-BrightmailFiltered: true<br>
X-Brightmail-Tracker: AAAAAQAAA+o=<br>
Message-ID: <43557DA5.1000800@iinet.net.au><br>
Date: Wed, 19 Oct 2005 06:56:37 +0800<br>
From: Phil Woods <USERNAME1@iinet.net.au><br>
User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)<br>
X-Accept-Language: en-us, en<br>
MIME-Version: 1.0<br>
To: USERNAME2@iinet.net.au<br>
Subject: RTKD Envelope<br>
Content-Type: multipart/mixed;<br>
boundary="------------040506030209030903020901"<br>
---------------END EMAIL--------------<br>
<br>
Where USERNAME1 is the username of the sender and USERNAME2 is my<br>
username at iinet. I think this was because woodsb02 didnt exist on my<br>
server... i use bwoods there instead! So i created an alias:<br>
<br>
cat /etc/mail/aliases<br>
<snip><br>
woodsb02: bwoods<br>
<br>
I think its working again. is this right?<br>
<br>
Now, my next problem is that my imap server thinks the sent mail folder<br>
should be ~/Sent. I want all mail folders in ~/mail/ (except INBOX which<br>
should be in /var/spool/mail/bwoods)... is this an ok proposal? how can<br>
i fix this?<br>
<br>
Next, is it hard to set up squirrel mail?<br>
<br>
Finally... i will look at clamav and spamassassin for virus and spam<br>
filtering.... i have no idea about either yet... that could be fun!<br>
<br>
I do realise that sendmail is a beast and would take a LONG time to<br>
fully learn. The setup that comes with slackware seems ok by default...<br>
so i am hoping i can just dodge learning about this beast...<br>
<br>
<br>
Any suggestions are appreciated.<br>
<br>
Thanks in advance<br>
<br>
--<br>
From: Benjamin Woods<br>
woodsb02@iinet.net.au<br>
Registered Linux User #372573<br>
<br>
_______________________________________________<br>
PLUG discussion list: plug@plug.org.au<br>
<a href="http://www.plug.org.au/mailman/listinfo/plug">http://www.plug.org.au/mailman/listinfo/plug</a><br>
Committee e-mail: <a href="mailto:committee@plug.linux.org.au">committee@plug.linux.org.au</a>
</span></font><o:p></o:p></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>----------------------------------------------------------------</span></font><o:p></o:p></p>
<div id=idOWAReplyText4771>
<div>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'> <o:p></o:p></span></font></p>
</div>
</div>
<div>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>The fetchmail man page (about 80% down) shows<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'>"<o:p></o:p></span></font></p>
</div>
<div>
<p class=MsoNormal><font size=2 face="Times New Roman"><span style='font-size:
10.0pt'> </span></font><font size=2 face="Courier New"><span
style='font-size:10.0pt;font-family:"Courier New"'>poll pop.provider.net proto
pop3 port 3111<br>
user "jsmith" with pass
"secret1" is "smith" here<br>
user jones with pass
"secret2" is "jjones" here keep</span></font><font size=2><span
style='font-size:10.0pt'><o:p></o:p></span></font></p>
</div>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'> This
associates the local username ‘smith’ with the
pop.provider.net username ‘jsmith’ and the local
username ‘jjones’ with the pop.provider.net username
‘jones’. Mail for ‘jones’
is kept on the server after download."<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>(source: <a
href="http://catb.org/~esr/fetchmail/fetchmail-man.html">http://catb.org/~esr/fetchmail/fetchmail-man.html</a>)<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>This is
the suggested way of handling remote to local username changes...<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Squirrelmail
is quite easy if you follow the instructions - and there are plenty of them!
See <a href="http://www.squirrelmail.org/wiki/InstallingSquirrelMail">http://www.squirrelmail.org/wiki/InstallingSquirrelMail</a> for
pretty much every permutation of mail server available :)<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>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<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'> <o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>Regards,<o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'> <o:p></o:p></span></font></p>
<p><font size=2 face="Times New Roman"><span style='font-size:10.0pt'>CraigF.<o:p></o:p></span></font></p>
</div>
</div>
</body>
</html>