Topic: Sending mails from applications on other servers through iRedmail
==== Required information ====
- iRedMail version: 0.8.4
- Store mail accounts in which backend: LDAP
- Linux/BSD distribution name and version: CentOS 6.4
- Related log if you're reporting an issue: No entries found
====
I was running 0.7 on CentOS 5.8 and this was working. But on the new system new versions of everything are installed, so I may have some configuration problems.
iptables is disabled on both machines
one machine runs iRedMail (IP 10.2.1.195)
another machine runs a PHP Web Application (IP 10.2.1.198) using swiftmailer php library
It is not possible to send mails from any other machine than 10.2.1.195. They get 'permission denied' errors. In the maillog I cannot find any entries. SwiftMailer generates for example:
++ Log level changed to 4
++ Forcing ESMTP mode. HELO is EHLO.
++ Forcing ESMTP mode. HELO is EHLO.
++ Trying to connect...
++ Trying to connect to SMTP server at 'tls://mail.datacave.ch:587
!! The SMTP connection failed to start [tls://mail.datacave.ch:587]: fsockopen returned Error Number 13 and Error String 'Permission denied'
I tried as well port 25 without any encryption, SSL and TLS, none work.....
I have in my main.cf the following configuration:
[root@mail1 log]# postconf -n | grep mynet
mynetworks = 127.0.0.0/8, 10.2.1.193/32, 10.2.1.194/32, 10.2.1.195/32, 10.2.1.196/32, 10.2.1.197/32, 10.2.1.198/32, 10.2.1.199/32, 10.2.1.65/32, 10.2.1.66/32, 10.2.1.67/32
mynetworks_style = subnet
and
[root@mail1 log]# postconf -n | grep perm
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre
smtpd_recipient_restrictions = reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, check_policy_service inet:127.0.0.1:10031
smtpd_sender_restrictions = permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated
So if I understand things right, all servers under mynetworks should be able to send emails.
Could anybody give me a hint, where to search further?
Many Thanks
Tom
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.