1

Topic: send mails from centos 7 posfix to debian iredmail

==== Required information ====
- iRedMail version: v0.4.1 (LDAP)
- Store mail accounts with LDAP
- Web server Apache
- Linux/BSD distribution name and version: Debian
- Related log if you're reporting an issue:
====

Hello Team,

everything went well and is working fantasticly.
No i want to send mails via postifix from a Centos 7 system to my debian iredmail server. Wich is not working.
Can you help? and what info do you need? Is there a basic postifx configuration for sending local mails?
Thx in advance

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: send mails from centos 7 posfix to debian iredmail

Please show us related error message/log.
Also, is CentOS 7 running iRedMail?

3

Re: send mails from centos 7 posfix to debian iredmail

Centos 7 has no iredmail running.
only postfix and mailx

May 13 12:39:36 server postfix/smtp[29556]: D8B54409C4A3: to=<postmaster@domain.local>, relay=none, delay=0.63, delays=0.06/0.01/0.57/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service e$
May 13 12:39:36 server2 postfix/cleanup[29554]: 8521B409C4A9: message-id=<20150513103936.8521B409C4A9@server.domain>

4

Re: send mails from centos 7 posfix to debian iredmail

neozimpi@gmail.com wrote:

to=<postmaster@domain.local>

Is 'domain.local' a valid DNS name? Does it have A/MX records? If not, you're using an invalid mail domain name, please use a valid one instead. If DNS records exist, you're probably using a bad DNS server address in /var/spool/postfix/etc/resolv.conf, you can simply copy /etc/resolv.conf to /var/spool/postfix/etc/resolv.conf to solve this issue.

5 (edited by neozimpi@gmail.com 2015-05-20 20:10:00)

Re: send mails from centos 7 posfix to debian iredmail

ZhangHuangbin wrote:
neozimpi@gmail.com wrote:

to=<postmaster@domain.local>

Is 'domain.local' a valid DNS name? Does it have A/MX records? If not, you're using an invalid mail domain name, please use a valid one instead. If DNS records exist, you're probably using a bad DNS server address in /var/spool/postfix/etc/resolv.conf, you can simply copy /etc/resolv.conf to /var/spool/postfix/etc/resolv.conf to solve this issue.

Domain.local is my replacement for the my domain in the log file.
No MX record. I also replaced my domain name with an example.

I checked in Centos 7 /var/spool/postfix/etc/resolf.conf is not there. I guess you meant
/var/spool/postfix   and /etc/resolf.conf.

There is only
/var/spool/postfix/
ls >>> active  bounce  corrupt  defer  deferred  flush  hold  incoming  maildrop  pid  private  public  saved  trace

client witch i want to send mails from is centos 7 smtp is my iredmail server

6

Re: send mails from centos 7 posfix to debian iredmail

neozimpi@gmail.com wrote:

I guess you meant /var/spool/postfix   and /etc/resolf.conf.

Not '/var/spool/postfix' and '/etc/resolv.conf, but '/var/spool/postfix/etc/resolv.conf'. Postfix is chrooted under /var/spool/postfix by default, so it reads /var/spool/postfix/etc/resolv.conf instead of /etc/resolv.conf.

7

Re: send mails from centos 7 posfix to debian iredmail

###############################################################
<alert@domain.local>: host mail.local[192.168.0.156] said: 530 5.7.0 Must issue
    a STARTTLS command first (in reply to MAIL FROM command)

--DC9A9409E1E8.1432120369/remote-eye.local
Content-Description: Delivery report
Content-Type: message/delivery-status

Reporting-MTA: dns; remote-eye.local
X-Postfix-Queue-ID: DC9A9409E1E8
X-Postfix-Sender: rfc822; root@remote-eye.local
Arrival-Date: Wed, 20 May 2015 13:12:48 +0200 (CEST)

Final-Recipient: rfc822; alert@domain.local
Original-Recipient: rfc822;alert@domain.local
Action: failed
Status: 5.7.0
Remote-MTA: dns; mail.local
Diagnostic-Code: smtp; 530 5.7.0 Must issue a STARTTLS command first
###############################################################

This is what i get if i try to send a mail via postfix.

Still checking the last post. Just wanted to share the output.

8

Re: send mails from centos 7 posfix to debian iredmail

neozimpi@gmail.com wrote:

<alert@domain.local>: host mail.local[192.168.0.156] said: 530 5.7.0 Must issue
    a STARTTLS command first (in reply to MAIL FROM command)

To send email via iRedMail server, you must perform SMTP AUTH with STARTTLS for secure connection.

9

Re: send mails from centos 7 posfix to debian iredmail

does it has to be postfix or is there an easier way to just send a mail local?

I setup postfix on my test machine as satellite system hope this i correct so far.

10

Re: send mails from centos 7 posfix to debian iredmail

I am out of luck with my solutions. nothing seems to be working.

could you describe on a fresh system winch steps i have to take to send mails to iredmail ?

11

Re: send mails from centos 7 posfix to debian iredmail

How about follow our tutorials to setup your mail client application correctly?
http://www.iredmail.org/docs/index.html … plications

12

Re: send mails from centos 7 posfix to debian iredmail

Thunderbird or Outlook clients is no problem. i want to send from a fresh linux system via command line.  So zabbix, nagios or a scripted event sends mails to iredmail.
Example. Fresh centos 7 where an event is triggered via lmsensors should send a mail with the warning.

13

Re: send mails from centos 7 posfix to debian iredmail

update your scripts to perform smtp auth to send email.

14

Re: send mails from centos 7 posfix to debian iredmail

Thanks its working.

Somehow Selinux gave me troubble