Email Set Up

Discussion in 'Server Operation' started by XTCHost, Aug 17, 2008.

  1. XTCHost

    XTCHost New Member

    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
     
  2. falko

    falko Super Moderator Howtoforge Staff

    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.
     
  3. XTCHost

    XTCHost New Member

    Email Server setup

    I have fetchmail set up and seems to work ok
    #
    fetchmail: 6.3.8 querying pop.mail.yahoo.co.uk (protocol POP3) at Tue 19 Aug 2008 12:21:20 PM BST: poll started
    Trying to connect to 217.12.10.100/110...connected.
    fetchmail: POP3< +OK hello from popgate 2.40 on pop002.mail.ukl.yahoo.com
    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: pop.mail.yahoo.co.uk: 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 pop.mail.yahoo.co.uk (72433 octets).
    skipping message [email protected]:1 not flushed
    skipping message [email protected]:2 not flushed
    skipping message [email protected]:3 not flushed
    skipping message [email protected]:4 not flushed
    fetchmail: POP3> QUIT
    fetchmail: POP3< +OK server signing off.
    fetchmail: 6.3.8 querying pop.mail.yahoo.co.uk (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 pop.mail.yahoo.co.uk 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/main.cf 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
     
  4. falko

    falko Super Moderator Howtoforge Staff

  5. dobje

    dobje New Member

    Hi,

    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)
     
    Last edited: Sep 5, 2008
  6. falko

    falko Super Moderator Howtoforge Staff

Share This Page