1 (edited by lmpadron 2016-02-11 05:18:24)

Topic: postfix connection refused

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.4
- Linux/BSD distribution name and version: 10.2
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? No
- Related log if you're reporting an issue:
====

I finish the iRedMail instalation and everything works fine but now i get postfix connection refused !!!! Im testing the mail via RoudCube !!! so i get conection refused to localhost (127.0.0.1), i also try with thunderbird and this is what i get !!!

Feb 10 16:09:09 mailserver postfix/submission/smtpd[9472]: connect from unknown[192.168.XX.XXX]
Feb 10 16:09:09 mailserver postfix/submission/smtpd[9472]: warning: TLS library problem: error:14094418:SSL routines:SSL3_READ_BYTES:tlsv1 alert unknown ca:/usr/src/secure/lib/libssl/../../../crypto/openssl/ssl/s3_pkt.c:1256:SSL alert number 48:
Feb 10 16:09:09 mailserver postfix/submission/smtpd[9472]: lost connection after STARTTLS from unknown[192.168.XX.XXX]
Feb 10 16:09:09 mailserver postfix/submission/smtpd[9472]: disconnect from unknown[192.168.XX.XXX]
Feb 10 16:11:14 mailserver postfix/submission/smtpd[9531]: connect from unknown[192.168.XX.XXX]
Feb 10 16:11:14 mailserver postfix/submission/smtpd[9531]: E049D5BDB7C: client=unknown[192.168.XX.XXX], sasl_method=PLAIN, sasl_username=mailuser1@mail.domain.name.es
Feb 10 16:11:14 mailserver postfix/cleanup[9534]: E049D5BDB7C: message-id=<56BBA797.1080709@mail.domain.name.es>
Feb 10 16:11:15 mailserver postfix/qmgr[1446]: E049D5BDB7C: from=<mailuser1@mail.domain.name.es>, size=1167, nrcpt=1 (queue active)
Feb 10 16:11:15 mailserver postfix/smtp[9535]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
Feb 10 16:11:15 mailserver postfix/smtp[9535]: E049D5BDB7C: to=<mailuser2@mail.domain.name.es>, relay=none, delay=0.2, delays=0.18/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
Feb 10 16:11:15 mailserver postfix/submission/smtpd[9531]: disconnect from unknown[192.168.XX.XXX]

Also found a TLS library problem !!!!!! some help !!!!
thanks in advance for your time

----

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

2 (edited by lmpadron 2016-02-12 00:25:33)

Re: postfix connection refused

reading something about this problem i realiced is very frecuent !!!!! so ... fallowing some answers i comment in /usr/local/etc/postfix/main.cf the fallowing lines

content_filter = smtp-amavis:[127.0.0.1:10024]
smtp-amavis_destination_recipient_limit = 1

After that i did
postfix reload
postsuper -r ALL

And it send the mails but with inestability, sometimes i get the conecction refused and sometimes i get the mail sended.
I explain, every time I send a mail I get the connection refused but when I reload and requeue the messages they get sended via dovecot

Now i uncomment the lines
content_filter = smtp-amavis:[127.0.0.1:10024]
smtp-amavis_destination_recipient_limit = 1

And i alwais get connection refused no matter how many times y do
postfix reload
postsuper -r ALL

One more thing the line "content_filter = smtp-amavis:[127.0.0.1:10024]" means thats amavis will be in the port 10024 of the localhost rigth ???? but when i do netstat -ln i dont see in localhost the port 10024 open !!!!!
So i belive the problem is with Amavis !!!! But i dont know how to fixit !!!!

Thanks for your time in advance

3

Re: postfix connection refused

Im getting close !!!!! I foud some problems with Amavis

Feb 11 11:42:49 mailserver amavis[20920]: (!!)TROUBLE in pre_loop_hook: config: no rules were found!  Do you need to run 'sa-update'?
Feb 11 11:42:49 mailserver amavis[20920]: (!)_DIE: Suicide () TROUBLE in pre_loop_hook: config: no rules were found!  Do you need to run 'sa-update'?


I try to run the sa-update but i get this !!!!
channel: no 'mirrors.updates.spamassassin.org' record found, channel failed

Some ideas !!! to fix it

4

Re: postfix connection refused

Can you try this:

sa-update --nogpg --channel updates.spamassassin.org

5

Re: postfix connection refused

lmpadron wrote:

Feb 10 16:11:15 mailserver postfix/smtp[9535]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused

Do you have port 10026 enabled in Amavisd config file? setting '$inet_socket_port ='. for example:

$inet_socket_port = [10024, 10026, 9998];

6

Re: postfix connection refused

ebenbeck@itbspa.de wrote:

Can you try this:

sa-update --nogpg --channel updates.spamassassin.org

This fixed the problem for me after updating spamassasin and amavisd-new on FreeBSD.

I ran the above command and restarted amavisd and all good.