HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (
-   Server Operation (
-   -   Email Set Up (

XTCHost 17th August 2008 21:38

Email Set Up
I am looking to set up a basic email server, my object is:

1. Have pop3 collected from various pop3 servers
2. De-spam it
3. Store it in a folder
4. Access it using either pop3 or imap

All users will have an account on the server

I send all mail through web domain servers not direct from my computer. can you advise on which programs are best to do this. I have fetchmail installed but not sendmail. I would like the fetch mail set up as a service if possible so it is aoutomated

I have read many things on the web and articles but want a small easy to run service that cllects mail but cannot send mail outside

many thanks

falko 18th August 2008 14:14

You can use fetchmail or getmail to retrieve emails from remote server. I'd then install Postfix with amavisd, SpamAssassin, and ClamAV to filter emails, and Courier for POP3.

XTCHost 19th August 2008 14:47

Email Server setup
I have fetchmail set up and seems to work ok
fetchmail: 6.3.8 querying (protocol POP3) at Tue 19 Aug 2008 12:21:20 PM BST: poll started
Trying to connect to
fetchmail: POP3< +OK hello from popgate 2.40 on
fetchmail: POP3> CAPA
fetchmail: POP3< +OK CAPA list follows
fetchmail: POP3< EXPIRE NEVER
fetchmail: POP3< IMPLEMENTATION popgate 2.40
fetchmail: POP3< PIPELINING
fetchmail: POP3< RESP-CODES
fetchmail: POP3< TOP
fetchmail: POP3< UIDL
fetchmail: POP3< USER
fetchmail: POP3< .
fetchmail: opportunistic upgrade to TLS failed, trying to continue.
fetchmail: POP3> USER user
fetchmail: POP3< +OK password required.
fetchmail: POP3> PASS *
fetchmail: POP3< +OK maildrop ready, 4 messages (72433 octets) (101287)
fetchmail: POP3> STAT
fetchmail: POP3< +OK 4 72433
fetchmail: POP3> LAST
fetchmail: POP3< +OK 4
4 messages (4 seen) for jard_bot at (72433 octets).
skipping message not flushed
skipping message not flushed
skipping message not flushed
skipping message not flushed
fetchmail: POP3> QUIT
fetchmail: POP3< +OK server signing off.
fetchmail: 6.3.8 querying (protocol POP3) at Tue 19 Aug 2008 12:21:49 PM BST: poll completed
fetchmail: normal termination, status 1
My fetchmail settings are
set daemon 300
poll with proto POP3
user 'user' there with password 'xxxxxx' is 'user' here
options keep

I have installed postfix and am not sure where the mail is going if it has arrived on my computer. I have not edited any of the /etc/postfix/ settings

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
inet_interfaces = localhost
mydestination = $myhostname, localhost.$mydomain, localhost
unknown_local_recipient_reject_code = 550
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.5.1/samples
readme_directory = /usr/share/doc/postfix-2.5.1/README_FILES
inet_protocols = all

I am not using a domain other than localhost.localdomain using a static ip address on my 192.x.x.x network ~ I will not be sending mail via the mail system but direct through yahoo

Many thanks for your help with this, I have read so much and tried many different ways but am just getting more confused

falko 20th August 2008 15:05

If you're using mbox format, then the mails should arrive in the /var/spool/mail directory; if you're using Maildir, then there should be a Maildir directory in the user's home directory.

You might want to combine your fetchmail setup with something similar to this:

dobje 5th September 2008 21:33


I was looking for the same setup (with maybe own local smtp server if possible to send mail ) and virtual users.

So use fetchmail to get the different e-mail accounts and deliver the mail to different virtual users .

But how i can configure this ?

Ps i am using centos 5.2 (in a openvz container)

falko 6th September 2008 13:03

All times are GMT +2. The time now is 05:05.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.