LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 01-04-2005, 09:30 AM   #1
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Rep: Reputation: 30
Setting up an Postfix Email server


Ok I thought it woule be easier if I just say out my real life scenrio for a better understanding for you all.

I have install Xebian Linux (based on debian) on an xbox. I intend to setup an postfix email server (on another PC). This email server will not be expose to the Internet, hence it will only use local IP address. I also planning to add spamassassin and clamav on this server.

Questions
1) Is there any guide on setting up postfix email server with spamassassin and clamav you all came across, preferbly if its based on debian?
2) Regarding POP and IMAP, how and what do I need to configure to use any of them? Are they related to the Postfix/MTA?

Thanks.
 
Old 01-05-2005, 05:46 AM   #2
jmeads
Member
 
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
check out http://www200.pair.com/mecham/spam/s...r20040701.html
 
Old 01-05-2005, 07:10 AM   #3
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by jmeads
check out http://www200.pair.com/mecham/spam/s...r20040701.html
Thanks. That was a great site!

btw If I want to use POP/IMAP, I have to configure postfix to perform that? Not quite sure how to configure pop/imap email server.
 
Old 01-05-2005, 07:40 AM   #4
jmeads
Member
 
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
postfix is just a mta, to access your mail via imap etc, you'll need to setup another service

I use dbmail - this is a imap/pop server with a database backend (apt-get install dbmail-mysql), but there's a number of other imap servers available

try

apt-cache search imap

to get a list...
 
Old 01-05-2005, 07:51 AM   #5
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by jmeads
postfix is just a mta, to access your mail via imap etc, you'll need to setup another service

I use dbmail - this is a imap/pop server with a database backend (apt-get install dbmail-mysql), but there's a number of other imap servers available

try

apt-cache search imap

to get a list...
Actually I still don't quite understand the function of MTA. So if I just set up a Postfix Server, what can it do in a network actually?
 
Old 01-05-2005, 07:58 AM   #6
zuralin
Member
 
Registered: Sep 2003
Distribution: Debian testing/unstable
Posts: 229

Rep: Reputation: 32
An MTA sends and receives mail, however it doesn't provide you with a way for users to access the mail, which is why you need the imap/pop3 server.
 
Old 01-05-2005, 09:04 AM   #7
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by zuralin
An MTA sends and receives mail, however it doesn't provide you with a way for users to access the mail, which is why you need the imap/pop3 server.
So if I want users to access a local email server (LAN), I need to..

1) Configure imap/pop3 server together with postfix to send and receive mails?
2) Configure the imap/pop3 server and a database to add/remove/edit the email users' username, password, mail storage quota etc?
3) Edit /etc/hosts, C:\windows\system32\drivers\etc\hosts to add an entry like "192.168.0.2 emailserver.com.sg" ?
 
Old 01-05-2005, 09:25 AM   #8
jmeads
Member
 
Registered: Dec 2004
Location: London
Distribution: Slackware
Posts: 44

Rep: Reputation: 15
you'll need to configure postfix to send and recieve emails (smtp) make sure its not an open relay, to send emails you may need to relay them though your isp's mail server as often isp's will block outgoing port 25 to stop spam. You need a fixed ip address or use a dns dynamic setup ...

you need to configure your imap / pop server to fetch emails for clients that connect, note that a imap server can't send / deliver emails, it just acts on a email repository...

depending on the imap server you use, you may need to create unix accounts for each email account, otherwise, add users as per the servers docs ( a case of rtfm)

Yes it can be helpful a add an entry into everyones hosts files, but you can either use just an ip on your lan, or use something like a light weight caching name server.

If you want postfix to be able to deliver and recieve mail, you will need to add some dns records, at least

an A record for the machine
a MX record for the A record

and maybe some CNAME records if your running a web server on the same box...
 
Old 01-12-2005, 10:04 AM   #9
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Latest update

Hi, I just installed debian and apt-get postfix, configure one of the option to be "internet".

My main.cf file

Quote:
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myhostname = localhost.localdomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = localhost.localdomain, localhost.localdomain, localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
cat /etc/mailname gives me localhost.localdomain.com

However, when I tried changing either of /etc/mailname or myhostname to something else (e.g linux.com.sg), I can't mail it out using "mail bla@gmail.com".

Another thing, what exactly is /etc/aliases used for in postfix?
 
Old 01-13-2005, 07:33 AM   #10
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Sorry for the mess, please ignore my previous post as I have figured out.

Now, I am able to use postfix to send email to my gmail account, I tried sending to another debian pc with postfix but mail delivery failed. What I did was add the ip and hostname to the /etc/hosts. (e.g 192.168.0.1 debian.server) Then do a "mail subaruwrx@debian.server".

Is it because I need IMAP/POP server to do that? I have downloaded courier-imap and courier-webadmin but how do I access the webadmin to configure courier?

Thanks
 
Old 01-14-2005, 10:01 PM   #11
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by subaruwrx
Sorry for the mess, please ignore my previous post as I have figured out.

Now, I am able to use postfix to send email to my gmail account, I tried sending to another debian pc with postfix but mail delivery failed. What I did was add the ip and hostname to the /etc/hosts. (e.g 192.168.0.1 debian.server) Then do a "mail subaruwrx@debian.server".

Is it because I need IMAP/POP server to do that? I have downloaded courier-imap and courier-webadmin but how do I access the webadmin to configure courier?

Thanks
bump
 
Old 01-15-2005, 07:59 PM   #12
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by subaruwrx
Sorry for the mess, please ignore my previous post as I have figured out.

Now, I am able to use postfix to send email to my gmail account, I tried sending to another debian pc with postfix but mail delivery failed. What I did was add the ip and hostname to the /etc/hosts. (e.g 192.168.0.1 debian.server) Then do a "mail subaruwrx@debian.server".

Is it because I need IMAP/POP server to do that? I have downloaded courier-imap and courier-webadmin but how do I access the webadmin to configure courier?

Thanks
bump.
 
Old 01-17-2005, 10:15 AM   #13
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by subaruwrx
Sorry for the mess, please ignore my previous post as I have figured out.

Now, I am able to use postfix to send email to my gmail account, I tried sending to another debian pc with postfix but mail delivery failed. What I did was add the ip and hostname to the /etc/hosts. (e.g 192.168.0.1 debian.server) Then do a "mail subaruwrx@debian.server".

Is it because I need IMAP/POP server to do that? I have downloaded courier-imap and courier-webadmin but how do I access the webadmin to configure courier?

Thanks
bump
 
Old 01-19-2005, 08:55 AM   #14
subaruwrx
Member
 
Registered: Mar 2004
Distribution: Ubuntu Feisty
Posts: 641

Original Poster
Rep: Reputation: 30
Rephrase my question a little..

I intend to setup an internal postfix + pop3 email server which means the email server will only provide pop3 email for the LAN. This is only a really simple email server that probably setup just to show that it work.

1) How should I configure postfix to this scenario?

2) Which pop3 server do you all suggest to go together with postfix? A really simple and easy to configure pop3 server will do.

3) I read that some email accounts are created as the UNIX account at the email server whereas some just use database like mysql, ldap etc? How do I determine which one to use? I suppose this is dependent on the pop3 server?

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I configure postfix master to forward all email to an email server ? hello321_1999 Linux - Software 1 11-18-2004 04:43 AM
Is Postfix an Email Server? Gib Sandwich Linux - Software 6 08-24-2004 02:23 AM
Using Postfix the send email via another smtp server - to anyone. scarstens Linux - Newbie 1 01-27-2004 03:31 PM
cannot receive email from mail server installed with postfix charles168 Linux - Software 4 08-15-2003 02:06 PM
SUSe email server hanging at postfix svc cmiwebmaster Linux - Newbie 0 04-14-2003 01:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 08:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration