DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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" ?
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...
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?
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?
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?
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?
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?
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.