| Linode Forum https://forum.linode.com/ |
|
| Postfix/Sendmail Connection Refused https://forum.linode.com/viewtopic.php?f=11&t=6759 |
Page 1 of 1 |
| Author: | JANorman [ Thu Feb 24, 2011 3:18 pm ] |
| Post subject: | Postfix/Sendmail Connection Refused |
Hi Guys, I'm having some trouble on a new server in relation to postfix and sendmail and using PHP's mail() command. I've setup the server in relation to this guide: http://library.linode.com/web-applicati ... an-5-lenny When trying to execute the program, the emails are not being sent to (external accounts) and the logs say the Connection Refused. I have been tirelessly searching for a while now but to no avail. I have included my main.cf file below and also a snippet of the logs. I appreciate any help that you can give! James Code: smtpd_sasl_auth_enable = yes Code: 54A7AAA18 341 Thu Feb 24 16:39:48 www-data@custard.janorman.co.uk |
|
| Author: | obs [ Thu Feb 24, 2011 3:39 pm ] |
| Post subject: | |
Looks like amavis isn't running try Code: /etc/init.d/amavis restart |
|
| Author: | JANorman [ Thu Feb 24, 2011 4:36 pm ] |
| Post subject: | |
Hi, thanks for the reply. I've just tried restarting a amavis, but it didn't exists. So, i did a apt-get install amavis but there seems to be a conflict in installing with SpamAssasin. Code: Starting amavisd: Problem in antispam SA code: Can't locate Mail/SpamAssassin.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 /usr/local/lib/site_perl) at (eval 91) line 63. Not sure how this can be fixed. James |
|
| Author: | obs [ Thu Feb 24, 2011 5:04 pm ] |
| Post subject: | |
Run this Code: apt-get install amavisd-new spamassassin zoo unzip bzip2 arj nomarch lzop cabextract apt-listchanges libnet-ldap-perl libauthen-sasl-perl clamav-docs daemon libio-string-perl libio-socket-ssl-perl libnet-ident-perl zip libnet-dns-perlagain from the doc, it looks like you missed it. |
|
| Author: | JANorman [ Thu Feb 24, 2011 5:39 pm ] |
| Post subject: | |
Ok, great that seems to have eradicated the errors but still not receiving the emails. Should the php.ini sendmail_path point towards sendmail or towards postfix? Also heres the updated logs. Code: -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------[/quote] |
|
| Author: | obs [ Fri Feb 25, 2011 7:29 am ] |
| Post subject: | |
It should point to /usr/sbin/sendmail which is the postfix sendmail compatibility binary. Set it to that, restart whatever runs php, see if it works if it doesn't show the contents of tail /var/log/mail.log |
|
| Author: | JANorman [ Fri Feb 25, 2011 9:43 am ] |
| Post subject: | |
Its pointing towards /usr/sbin/sendmail. Here's the log file, it appears that its Clam antivirus messing it around. Code: custard:/etc/postfix# tail /var/log/mail.log I've just removed ClamAV and Amavis as per this guide. Resrated and no luck. http://www.faqforge.com/linux/controlpa ... pconfig-3/ |
|
| Author: | JANorman [ Fri Feb 25, 2011 10:00 am ] |
| Post subject: | |
Cheers obs, It's all working now. After disabling CLAMAV and AMAVIS, i then had to create the postfix virtual directories as they didnt exists. and now i have around 300 emails in my inbox. Cheers, really appreciate the help. James |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|