LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   PostFix configuration (https://www.linuxquestions.org/questions/linux-enterprise-47/postfix-configuration-521869/)

jscedunn 01-22-2007 08:09 PM

PostFix configuration
 
Hello,
I am trying to configure POSTFIX on Linux ES. I have install and configured according to book I bought "POSTFIX" by Ralf Hildebrant.

Anyway. I can recieve mail but I can not send mail to my yahoo account. Port 25 seems fine. Of course this is my first attempt at a mail server.

One stupid question might be, do I need some other software like a mail client installed to send mail?

any thoughts

Thanks
Jim

chort 01-22-2007 11:55 PM

Postfix will send mail if it can access a DNS server to lookup where the mail should be sent to.

The question is, how are you trying to send mail? How do you know it doesn't work? Have you checked the log files, such as /var/log/maillog, /var/log/mail, /var/log/mail.info, etc?

jantman 01-24-2007 01:35 AM

For starters, please post the content of your /etc/postfix/main.cf file.

How are you trying to send the mail?

Do you have a dynamic Internet IP or static? Most big mail servers (Yahoo, AOL, etc.) have reverse DNS lookups enabled, so they'll just reject (or maybe drop) your mail.

I've been having a lot of problems with my mailserver lately, so I should be able to at least get you started...

BTW, is this the only forum you posted this thread in? This isn't really related to "Linux - Enterprise"

jscedunn 01-28-2007 03:41 PM

Postfix problem still
 
Sorry about the delay in getting back. Learning Linux is full of surprizes. But I have found out that I can recover quickly.

I still am having problem trying to send mail. I can recieve mail from anyone. The only configuration files I have messed with is main.cf these are the changes.

main.cf
mydomain = acfd.biz
myorigin = $mydomain

mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain, mail.$mydomain, www.$mydomain, ftp.$mydomain

inet_interfaces = all

smtpd_sasl_local_domain = acfd.biz
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous

saslauthd
MECH=pam

Thats all the changes I have made.

This is the out put of my log file sending to my yahoo account
Jan 28 15:14:00 acfd postfix/smtp[3935]: D58A029847A: to=<jscedunn@yahoo.com>, relay=g.mx.mail.yahoo.com[206.190.53.191], delay=1790, status=sent (250 ok dirdel)unt

This looks like a success but still I never see the mail at yahoo.

Anythoughts

Jim

chort 01-28-2007 06:21 PM

Check your junk mail folder in Yahoo!?

Do you have any log output of attempts to send to other domains?

jscedunn 01-31-2007 05:32 AM

Chort,
Thank you for responding, I went to AOL and set up a account and tried sending mail, low and behold it worked. I guess I had it right all the time. Not sure what yahoo problum is or if there is something I must set to make it work with them. I did check the bulk mail it was turned of I will try to turn it on and retest.

I edited my maillog file and saved it in vi and now there is no logs being writen, can I delete this file? I am thinking it should start a new one

Thanks for you help

Jim

chort 01-31-2007 11:49 AM

Quote:

Originally Posted by jscedunn
Chort,
Thank you for responding, I went to AOL and set up a account and tried sending mail, low and behold it worked. I guess I had it right all the time. Not sure what yahoo problum is or if there is something I must set to make it work with them. I did check the bulk mail it was turned of I will try to turn it on and retest.

I edited my maillog file and saved it in vi and now there is no logs being writen, can I delete this file? I am thinking it should start a new one

Thanks for you help

Jim

Postfix is probably trying to write to where you saved the log, but it can't because of permissions. Stop Postfix, record the permissions of the file it's supposed to write to, then move that file out of the way and create a new one with touch. Make sure the permissions of the new file exactly match the old log file, then restart Postfix.

BTW that is a very good example of why not to use an editor on live log files. Either use less, tail, or copy the file to another location before using an editor on it. FYI less supports the same type of pattern searches that vi does.

As for Yahoo!, they probably don't like your reverse DNS for some reason, or your netblock is blacklisted, and they're silently dropping your messages. That's a little unusual because typically sites would rather reject your message than queue it when they plan on throwing it away.


All times are GMT -5. The time now is 02:04 AM.