Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I am currently trying to set-up my server to act as an e-mail server, currently I have set up an MX record for mail.r3sistance.net and I am trying to configure postfix to recieve e-mails. Assume a username of abcde and I want abcde@r3sistance.net to be a working e-mail address that can send and recieve e-mail addresses.
I am currently confused as to what exactly I would need to set-up to get this to work. I am Using CentOS 5.2 if that effects anything and am trying to just get this e-mail server working for now.
Overall I have tried a couple of guides but they have lost me a bit and I am unsure why this does not already work. So if I know what variables should be set within which script specfically it should help me figure out where I am going wrong.
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660
Rep:
Followed some guides? What guides? What did you not understand? What are the contents of your main.cf file? No one is going to be able to help you without some more information.
If you have a valid user abcde, then all you should really need to is set you hostname and domain name in main.cf properly. Make sure your firewall is open on port 25.
If that doesn't work, look in /var/log/maillog for a start.
Note that to read mail you will probably want to run a pop or imap server as well (look at dovecot).
I got a rule in the firewall for port 25. however attempts to e-mail myself have resulted in the following response "smtp;550 Requested action not taken: mailbox unavailable"
I have set in /etc/aliases
# Person who should get root's mail
root: berwick
and directory exists
/home/berwick/Maildir
which has permissions as such drwx------
lastly my input chain for iptables
Code:
pkts bytes target prot opt in out source destination
1 60 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:995 state NEW
1 60 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:993 state NEW
1 60 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:143 state NEW
1 60 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:110 state NEW
233 11248 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:25 state NEW
1206 64583 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:80 state NEW
237 37510 ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
112 7360 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 255
0 0 ACCEPT esp -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT ah -- * * 0.0.0.0/0 0.0.0.0/0
18040 1411K ACCEPT udp -- * * 0.0.0.0/0 224.0.0.251 udp dpt:5353
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:631
1 60 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 tcp dpt:631
394K 353M ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
7999 479K ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
108K 18M REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
Not sure what I may have done wrong or set wrong =/.
Last edited by r3sistance; 11-14-2008 at 04:20 PM.
Reason: iptables
I wouldn't have thought you nedded to, but try running "maildirnmake" to create the maildir directory structure (or you could create cur, new and tmp under Maildir manually).
If that doesn't work, please make sure you post the exact log messages nest time.
Don't seem to work, that was pretty much all there was of note in the details I got back, I am gunna try recreating the MX records, I am wondering if the e-mails are even hitting my server right now, checked the logs of postfix and it does not appear to note anything so I am thinking perhaps not...
Working in a Datacenter I actually get to talk to alot of people and finally found out that while the firewall wasn't blocking the port the traffic wasn't being correctly forwarded to postfix, redone the rules and it works now. So this is sorted now . Just before anybody else tries to be helpful... several years done the line or something.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.