Postfix able to send but not receive mail :( !!
Hi ,
i am trying to set up a mail server for the company i work for , however i ain't expert in linux :( been trying to set the mail up for days and so far only manage to send mail but no success in receiving any :( the MTA i am using is postfix , whereas for the POP , IMAP or SMTP , i don really understand but using chkconfig to check it seems like the POP3S, IMAPS are on , as for SMTP dunno about it but i heard it comes with POSTFIX . the distro i am using is REDHAT 9. here is the main.cf from postconf -n : Code:
alias_maps = hash:/etc/postfix/aliases however if i omited the mailserver out so only user@company.com left , the mailer daemon did not return any error message but the user also did not receive any mail :( any help on this would be really appreciated :) by the way how do we create a mail address for a user? are they automatically created when we add the user to the server? tia |
Ok, yes, your mail users should be automatically added when they are added to the system.
try telnetting into it see if you get a response. Try it first on local host, then from the web to be sure it is not an issue with iptables blocking your port 25, or a firewall blocking port 25. |
I assume you have set up your MX records correctly in DNS?
|
ezra143, thanks for your reply
i 've tried to telnet to localhost 25 from the terminal and it responsed, but when i tried it on the browser http://localhost:25 , it gave me some reply about the port has been disabled for security reason. please correct me if i am wrong :) i then set the port 25 to be opened in the firewall using 'iptables -A INPUT -p tcp --dport 25 -j ACCEPT' after that i can receive mail from the outside(from yahoo.com) but will this post a security threat since i have heard that port 25 is not a safe port? are there any other ports to replace this one? please enlight me on these :) Flibble , thanks for your reply :) i think i might have set my MX record correctly , anyway is there any way for me to check it ? maybe from certain files? thanks |
ok, if you can telnet into your machine on port 25 then you have got a working MTA (so to speak) you shouldn't be able to see anythig from your browser, as there is nothing to see.
you DNS records are set when you register your domain name (you site name) and are typically done with a domain registrar. Ie: register.com or Dyndns.org ok, what does your alias settings look like? |
err?? which alias setting you meant , ezra143?
was it the /etc/postfix/aliases file? sorry if i did not get what you mean :( |
probably, I am not familiar with postfix... It should list all the names you machine will be known by. IE: mail.domain.com, domain.com, mailsserver.domain.com
|
err cannot find the files you mention except the one in main.cf which i have posted at the start of this thread :(
by the way i just found out that i can only send and receive mail using pine, i tried to configure evolutions with setting : receiving mail (pop.company.com) and sending mail (mail.company.com) but it did not work , maybe i misconfigured evolutions or the postfix main.cf files. any hints on these please thanks :) nb: my main.cf is posted at the start of this thread :) thanks |
smtp.company.com
|
host -t MX company.com
|
mydestination = $myhostname, localhost.$mydomain $mydomain
there's no mailserver.company.com here so it won't accept mail to that address. Only what's listed as mydestination will be sent to local mailboxes, all else will be relayed if it's allowed. check your log files |
All times are GMT -5. The time now is 03:21 PM. |