Main Page | Report this Page
Linux Forum Index  »  Linux Setup  »  Email server setup...
Page 1 of 1    

Email server setup...

Author Message
Roger N. Clark (change username to rnclark)...
Posted: Sat Sep 05, 2009 5:25 pm
Guest
Hello,
I'm putting together a ubuntu linux system. It will have
a static IP address. I want to set up an email system
that I can connect to from remote sites using programs like
thunderbird on windows or linux. The world has changed a
lot since I set up sendmail on unix machines years ago and
I'm not sure what is the best direction to head to do this
today. I've found this tutorial online:

http://flurdy.com/docs/postfix

which seems like it may have everything I need, though a
little complex. I do like the idea of blocking sites for
incoming mail as I'm getting too much spam. Any advice on
how to accomplish this would be appreciated.

Thanks
Roger
 
The Natural Philosopher...
Posted: Sat Sep 05, 2009 6:33 pm
Guest
Roger N. Clark (change username to rnclark) wrote:
Quote:
Hello,
I'm putting together a ubuntu linux system. It will have
a static IP address. I want to set up an email system
that I can connect to from
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Make up your mind..

Do you want to send mail to (via) and from an ISP? or what?

remote sites using programs like
Quote:
thunderbird on windows or linux. The world has changed a
lot since I set up sendmail on unix machines years ago and
I'm not sure what is the best direction to head to do this
today. I've found this tutorial online:

http://flurdy.com/docs/postfix

which seems like it may have everything I need, though a
little complex. I do like the idea of blocking sites for
incoming mail as I'm getting too much spam. Any advice on
how to accomplish this would be appreciated.

Thanks
Roger
 
Roger N. Clark (change username to rnclark)...
Posted: Sat Sep 05, 2009 9:09 pm
Guest
The Natural Philosopher wrote:
Quote:
Roger N. Clark (change username to rnclark) wrote:
Hello,
I'm putting together a ubuntu linux system. It will have
a static IP address. I want to set up an email system
that I can connect to from
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Make up your mind..

Do you want to send mail to (via) and from an ISP? or what?

No, I would send and receive mail from the Linux machine, and sometimes
via my laptop connecting to the Linux machine when I am away.
I just want to retrieve mail from the Linux server, e.g. via pop
and a secure connection to my laptop and then send mail from my laptop
through the Linux server. My email address would always be
something like me at (no spam) mylinuxserver.org but I'll need to connect, for
example, from a hotel.

Roger
 
Justin...
Posted: Sat Sep 05, 2009 10:51 pm
Guest
Try this over flurdys. My first attempt was using flurdys but I found
workaround.org easier to work through.

http://workaround.org/ispmail/lenny

I built it firstly on Ubuntu 9.04 Server 64 bit but when I migrated to
purpose built machine I used 32bit server. Server does not install GUI
so on the second build I completed the initial bare bones OS
installation, sorted SSH server and Webmin. From then on I did all the
rest of the install from my workstation, browser open at workaround.org
for guidance, SSH and Webmin for installing and tweaking.

To get what you want you will need Webmail and POP/IMAP. There are a few
options, all of which have their fan base, but I haven't yet gone wrong
with Dovecot and Squirrelmail. My 15 client users are way more than
happy with the setup, especially the huge reduction of spam hitting
their mailboxes. I am also some what more responsive than the local ISPs
to sort issues.

The spam filtering I use in my Postfix main.cf includes

smtpd_recipient_restrictions =
permit_mynetworks,
permit_sasl_authenticated,
reject_unauth_destination,
reject_invalid_hostname,
reject_non_fqdn_hostname,
reject_non_fqdn_sender,
reject_non_fqdn_recipient,
reject_unknown_sender_domain,
reject_unknown_recipient_domain,
reject_rbl_client bl.spamcop.net,
reject_rbl_client sbl-xbl.spamhaus.org,
reject_rbl_client dnsbl.njabl.org,
reject_rbl_client dnsbl-1.uceprotect.net,
reject_rbl_client dnsbl-2.uceprotect.net,
permit

smtpd_data_restrictions =
reject_unauth_pipelining,
permit

# Strange Syntax / Strict syntax
smtpd_helo_required = yes
strict_rfc821_envelopes = yes

These block 70-85% of all attempts to connect and send spam. Some people
avoid uceprotect because they can be a bit aggressive, but here in lil
ole New Zealand it has been an issue only once so far.

I also have spamassassian and ClamAV scanning.

Regards

Justin


Roger N. Clark (change username to rnclark) wrote:
Quote:
Hello,
I'm putting together a ubuntu linux system. It will have
a static IP address. I want to set up an email system
that I can connect to from remote sites using programs like
thunderbird on windows or linux. The world has changed a
lot since I set up sendmail on unix machines years ago and
I'm not sure what is the best direction to head to do this
today. I've found this tutorial online:

http://flurdy.com/docs/postfix

which seems like it may have everything I need, though a
little complex. I do like the idea of blocking sites for
incoming mail as I'm getting too much spam. Any advice on
how to accomplish this would be appreciated.

Thanks
Roger
 
HASM...
Posted: Tue Sep 08, 2009 8:19 am
Guest
"Roger N. Clark (change username to rnclark)" <username at (no spam) qwest.net> writes:

Second (or third) the use of your ISP for outgoing email, with postfix and
SMTP_AUTH (SASL). I use bluehost.com but most will do. Route your incoming
email through a Google Apps account and fetchmail over SSL from there,
which will take care of most spam. Deleting all messages from Google will
keep last 30 days of incoming email in the Trash folder. Access gmail from
anywhere and one can even send from there with outgoing email also being
fetchmailed into the home machine. I do all of that with a dynamic IP,
with DNS managed at zoneedit.com via ddclient, not at my ISP.

-- HASM
 
Roger N. Clark (change username to rnclark)...
Posted: Sun Sep 20, 2009 11:01 am
Guest
Roger N. Clark (change username to rnclark) wrote:
Quote:
Hello,
I'm putting together a ubuntu linux system. It will have
a static IP address. I want to set up an email system
that I can connect to from remote sites using programs like
thunderbird on windows or linux.

Just an update. I've got postfix and dovecot running and am
able to send and receive mail locally on the system as well
as send mail to remote systems (my linux box sends the mail).
I can also receive mail from other systems just fine.

I have configured my laptop to connect via imap, tls and
secure authentication and I can read my email just fine.
What I can't yet do is send email from my
laptop--I must still have a configuration parameter wrong.

I also have fetchmail running to get other mail from my isp, but
while I can connect and authenticate, it gets an error and fails
to deliver any messages. Close but not quite.

Thanks everyone for the help. I'm almost there.

Roger
 
Aragorn...
Posted: Sun Sep 20, 2009 11:24 am
Guest
On Sunday 20 September 2009 19:01, someone identifying as *Roger N.
Clark (change username to rnclark)* wrote in /comp.os.linux.setup:/

Quote:
Roger N. Clark (change username to rnclark) wrote:

I'm putting together a ubuntu linux system. It will have
a static IP address. I want to set up an email system
that I can connect to from remote sites using programs like
thunderbird on windows or linux.

Just an update. I've got postfix and dovecot running and am
able to send and receive mail locally on the system as well
as send mail to remote systems (my linux box sends the mail).
I can also receive mail from other systems just fine.

I have configured my laptop to connect via imap, tls and
secure authentication and I can read my email just fine.
What I can't yet do is send email from my
laptop--I must still have a configuration parameter wrong.

Well, there are two things you should check for...

(1) Make sure that the e-mail client you're using on your laptop
has either your server's IP address or its hostname set as
the SMTP to use; and

(2) Make sure that there isn't a firewalling rule active on your
laptop that would block access to your server's SMTP port.

Quote:
I also have fetchmail running to get other mail from my isp, but
while I can connect and authenticate, it gets an error and fails
to deliver any messages. Close but not quite.

Without that you give us the verbatim error message, we won't be able to
give you any advice on that. ;-)

--
*Aragorn*
(registered GNU/Linux user #223157)
 
Roger N. Clark (change username to rnclark)...
Posted: Sun Sep 20, 2009 1:32 pm
Guest
Aragorn wrote:
Quote:
On Sunday 20 September 2009 19:01, someone identifying as *Roger N.
Clark (change username to rnclark)* wrote in /comp.os.linux.setup:/

Roger N. Clark (change username to rnclark) wrote:

I'm putting together a ubuntu linux system. It will have
a static IP address. I want to set up an email system
that I can connect to from remote sites using programs like
thunderbird on windows or linux.
Just an update. I've got postfix and dovecot running and am
able to send and receive mail locally on the system as well
as send mail to remote systems (my linux box sends the mail).
I can also receive mail from other systems just fine.

I have configured my laptop to connect via imap, tls and
secure authentication and I can read my email just fine.
What I can't yet do is send email from my
laptop--I must still have a configuration parameter wrong.

Well, there are two things you should check for...

(1) Make sure that the e-mail client you're using on your laptop
has either your server's IP address or its hostname set as
the SMTP to use; and

Yes, just got it fixed. It was a laptop configuration problem.

Quote:

(2) Make sure that there isn't a firewalling rule active on your
laptop that would block access to your server's SMTP port.

I also have fetchmail running to get other mail from my isp, but
while I can connect and authenticate, it gets an error and fails
to deliver any messages. Close but not quite.

Without that you give us the verbatim error message, we won't be able to
give you any advice on that. Wink

I agree. But it never really gave an error message, it just
hung after login. But in any case I just got it fixed.

All seems to be working. Way cool.

Roger
 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Tue Nov 24, 2009 7:51 pm