PDA

View Full Version : Postfix problems


kencochrane
2003-08-14, 13:20 PM
Hello,

I have a Redhat 8.0 Power server with the webmin control panel, and I am trying to get postfix to work for my server.

I have many domains pointing to the same server and I would like to recieve mail for all of them, well right now it would be nice to get mail from just one.

I setup postfix using the webmin control panel and I can send email out but for some reason I can't recieve any. When I send email to the box I get email 24 hours later saying that it still isn't delivered and it is being reject by the server.

Has anyone had any luck with postfix? any help would be appreciated.

I am thinking about switching to QMail, but I don't know where I can find the RPM, does anyone know?

I just want to get an email server setup that can handle SMTP. It is proving harder then I originally thought.

Thanks,
Ken Cochrane

QT
2003-08-14, 13:34 PM
Can you post more information regarding your errors?

You might want to check your DNS settings and make sure the hostname of your mail server resolves and there is an MX record for the domain.

kencochrane
2003-08-14, 13:40 PM
Hello,

Here is the email that I got when I tried to send an email to my server.


The message identifier is: 19mkTr-0004B8-Oc
The subject of the message is: test 1
The date of the message is: Tue, 12 Aug 2003 21:31:20 -0400

The address to which the message has not yet been delivered is:

help@cheapbin.com
Delay reason: Connection refused


in the maillog log file it doesn't give me any errors.

I am guessing that for some reason my machine is blocking any email that is trying to get delivered to my machine.

The only thing that I can think of that might not be postfix related that might affect this is that I ran Bastille the security script on my machine a while ago before I had postfix running. I am not sure if this is causing any problems.

Does postfix automatically block any email that isn't from localhost? I know sendmail does it.

If you need anymore information let me know.

Thanks,
Ken

kencochrane
2003-08-14, 13:45 PM
[You might want to check your DNS settings and make sure the hostname of your mail server resolves and there is an MX record for the domain. [/B]

It was working before with sendmail, it stopped working once I switched to postfix.

I checked my DNS setting and this is what I have

cheapbin.com. IN MX 10 cheapbin.com.

so it looks like I do have an MX record pointing to my mail server. (cheapbin.com points to my ip address. for my server)

QT
2003-08-14, 13:53 PM
"Connection refused" means that the mail
server isn't even running.

As far as blocking any email that isn't from localhost...it'll only accept mail for domains it is configured to accept mail for.

kencochrane
2003-08-14, 14:04 PM
So it isn't even running, hmm. ok I did a ps aux and I get the following running for postfix

postfix 32066 0.0 0.1 3676 1100 ? S 14:01 0:00 pickup -l -t fifo -u -c

postfix 30228 0.0 0.1 6336 1480 ? S 10:41 0:00 nqmgr -l -n qmgr -t fifo -u -c

root 27975 0.0 0.1 3644 1172 ? S 06:43 0:00 /usr/libexec/postfix/master

I don't notice any SMTP or anything like that running, is that normal?

I assumed that the two postfix entries above ment that the mail server was running, was I wrong? if so how would I start it?

Looking thru the postfix documentation it told me to add an entry into the virtual table for every host that I want to accept mail for. This is what I have in it right now.

kcochran is my local account

kencochrane.net virtual
postmaster@kencochrane.net postmaster
ken@kencochrane.net kcochran
@kencochrane.net kcochran
wickedcheapstuff.com virtual
postmaster@wickedcheapstuff.com postmaster
@cheapbin.com kcochran

Am I doing something wrong?

Thanks you for your help,
Ken Cochrane

kencochrane
2003-08-14, 14:10 PM
Doing a postconf -n I get the following not sure if this helps or not.

alias_database = hash:/etc/postfix/aliases
alias_maps = hash:/etc/postfix/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
masquerade_domains = cheapbin.com
mydestination = $myhostname, localhost.$mydomain, $mydomain
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-1.1.12/README_FILES
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/postfix-1.1.12/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
virtual_maps = hash:/etc/postfix/virtual

kencochrane
2003-08-16, 09:17 AM
I finally got it working.

I had to have the right combination of virtual hosts and redirects and it eventually worked. It seems to be very picky.

Thank you for the help,

Ken