1

Topic: Can not connect to port 25

Hi,

I've installed iRedmail version 0.7.1. I'm able to send email through port 587. But can not able to send through port 25. How can we enable the server to allow users to send email through port 25 using connection secuirty "none / starttls / ssl).

Thanks.

2

Re: Can not connect to port 25

What's the error message on your server? it should be logged in /var/log/maillog.

3 (edited by DarkKnightCZ 2011-05-19 01:49:52)

Re: Can not connect to port 25

ZhangHuangbin: i have the same problem, log is

May 18 17:16:10 domain roundcube: SMTP Error: SMTP error: Authentication failure: SMTP server does not support authentication (Code: ) in /usr/share/apache2/roundcubemail-0.5.2/program/steps/mail/func.inc on line 1497 (POST /mail/?_unlock=loading1305731756987?_task=mail&_action=send)

//edit

so i figured out this is the whole log

May 18 19:37:34 domain sm-mta[1857]: NOQUEUE: SYSERR(root): hash map "access": missing map file /etc/mail/access.db: No such file or directory
May 18 19:37:34 domain sm-mta[1857]: ruleset=check_relay, arg1=mail.domain.tld, arg2=127.0.0.1, relay=mail.domain.tld [127.0.0.1], reject=451 4.3.0 Temporary system failure. Please try again later.
May 18 19:37:34 domain roundcube: SMTP server does not support authentication ():
May 18 19:37:34 domain roundcube: SMTP Error: SMTP error: Authentication failure: SMTP server does not support authentication (Code: ) in /usr/share/apache2/roundcubemail-0.5.2/program/steps/mail/func.inc on line 1497 (POST /mail/?_unlock=loading1305740229218?_task=mail&_action=send)

since makehash for access.db is from sendmail, i created it on other mashine, now the error is this

May 18 19:47:47 domain roundcube: Invalid response code received from server (535):
May 18 19:47:47 domain sm-mta[2418]: p4IHll7a002418: mail.domain.tld [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4
May 18 19:47:47 domain roundcube: SMTP Error: SMTP error: Authentication failure: Invalid response code received from server (Code: 535) in /usr/share/apache2/roundcubemail-0.5.2/program/steps/mail/func.inc on line 1497 (POST /mail/?_unlock=loading1305740841144?_task=mail&_action=send)

4

Re: Can not connect to port 25

May 18 19:47:47 domain sm-mta[2418]: p4IHll7a002418: mail.domain.tld [127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA-v4

Sorry, is this Postfix or Sendmail?
iRedMail uses Postfix as MTA.

5

Re: Can not connect to port 25

ZhangHuangbin: this is iRedMail, sendmail ISNT installed -> iRedMail uses Postfix, but in iRedMail's roundcube config there is smtp server blank (php function mail() is used)

6

Re: Can not connect to port 25

DarkKnightCZ wrote:

sendmail ISNT installed

Sorry, what's sendmail ISNT?

7 (edited by DarkKnightCZ 2011-05-20 01:25:29)

Re: Can not connect to port 25

ZhangHuangbin: well, something was messed up in my OS -> postfix used sendmail, postfix and other MTA's was badly configured (dunno why)

i reinstalled it to fresh install (without LAMP server) and installed, everything is fine, except that every mail is rejected (NOQUEUE: reject: RCPT from mail-qy0-f170.google.com[209.85.216.170]...)

i guess it has something to do with DNS... do i have to run DNS server on my server?

Google tried to deliver your message, but it was rejected by the recipient domain. We recommend contacting the other email provider for further information about the cause of this error. The error that the other server returned was: 450 450 4.7.1 <www@domain.tld>: Recipient address rejected: Policy Rejection- Please try later. (state 14).

//edit 2:
ok, i added google.com into postfix-policyd's table whitelist_dnsname, and mail was delivered -> greylisting problem smile

8

Re: Can not connect to port 25

Yes, as you said, "Recipient address rejected: Policy Rejection- Please try later." is greylisting, just wait for some minutes.