1 (edited by relaxant 2012-04-03 03:33:57)

Topic: Cant receive emails from outside (ex. Gmail)

Hi everyone,
I deployed my first iredmail in production environment. few days ago. It looks good at first glance. Panel of iredadmin, roundcube, connection with thunderbird, everything is ok.
First domain, used in installation process works fine. But for users in second and next domains (added from iredadmin panel) i can:
- send emails to another user in my postfix server (sended by thunderbird and roundcube)
- send emails outside (for example to gmail)
- recive emails from another user from my postfix server (recive in thunderbird and roundcube)
but is impossible to send email message from gmail to this users.

When i send email from gmail i get a message from mailer-daemon@googlemail.com
"Technical details of permanent failure:
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: 550 550 5.1.1 User not found (state 14)"

Additionaly there are no entries in /var/log/mail.log and /var/log/mail.err

Any suggestions?

Please help
Thanks

==== Provide required information to help troubleshoot and get quick answer ====
- iRedMail version: 0.7.4 (LDAP)
- Linux/BSD distribution name and version: Debian squeeze (2.6.32-5)
- /var/log/mail.log - empty hmm
====

----

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

2

Re: Cant receive emails from outside (ex. Gmail)

ok, its looks like dns problem
i've created a new dns configuration, where
A:
@       my.ip.addr
mail       my.ip.addr

MX:
@       mail.mydomain.ltd

is that correct?

3 (edited by relaxant 2012-04-03 20:18:27)

Re: Cant receive emails from outside (ex. Gmail)

OK,

now i have sitaution where

telnet localhost 25 - ok
telnet domain.ltd 25 or 587 - is ok
telnet domain2.ltd 25 or 587 - connection refused

where
domain.ltd - domain added in iredmail installation process
domain2.ltd - domain added by iredmail panel

but
roundcube (local connection) works and send emails from both domain to outside (for example to gmail) 
reply from gmail comes to only to domain.ltd
reply from gmail to domain2.ltd doesn't work, nothing from mailer-daemon on google account and nothin in postfix log (any attempts to connect from gmail)

any suggestion?

4

Re: Cant receive emails from outside (ex. Gmail)

At now if i try use a telnet then:

telnet domain2.ltd 25

Trying XXX.XXX.XXX.XXX...
Connected to domain2.ltd.
Escape character is '^]'.
421 Cannot connect to SMTP server XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX:465), connect error 10061
Connection closed by foreign host.

hmm... problem with ldpa and virtual_mailbox_domains.cf ?
how can i check it?

5

Re: Cant receive emails from outside (ex. Gmail)

With command 'telnet domain2.ltd 25', do you have correct DNS record for domain2.ltd?
Its A and MX records should point to domain.ltd.

6

Re: Cant receive emails from outside (ex. Gmail)

content of the dns zones

domain2.ltd.        86400    IN    SOA    fns1.42.pl. freedns-admin+134658.42.pl. 1333531575 10800 3600 604800 10800
domain2.ltd.        86400    IN    A    XXX.XXX.XXX.XXX
domain2.ltd.        86400    IN    MX    0 mail.domain.ltd.
domain2.ltd.        86400    IN    NS    fns1.42.pl.
domain2.ltd.        86400    IN    NS    fns2.42.pl.
mail.domain2.ltd.        86400    IN    A    XXX.XXX.XXX.XXX
www.domain2.ltd.        86400    IN    A    XXX.XXX.XXX.XXX
domain2.ltd.        86400    IN    SOA    fns1.42.pl. freedns-admin+134658.42.pl. 1333531575 10800 3600 604800 10800
;; Query time: 1 msec

where XXX.XXX.XXX.XXX - server's ip (correct and the same like domain.ltd)

so MX record points to mail.domain.ltd (this domain is in main.cf too, as "myhostname")

7

Re: Cant receive emails from outside (ex. Gmail)

relaxant wrote:

telnet domain2.ltd 25

Trying XXX.XXX.XXX.XXX...
Connected to domain2.ltd.
Escape character is '^]'.
421 Cannot connect to SMTP server XXX.XXX.XXX.XXX (XXX.XXX.XXX.XXX:465), connect error 10061
Connection closed by foreign host.

Port 465 is not enabled in iRedMail by default, so this is a expected message.

relaxant wrote:

telnet domain.ltd 25 or 587 - is ok
telnet domain2.ltd 25 or 587 - connection refused

No idea at all. sad
If you have correct DNS records, connect to domain2.ltd should be the same as domain.ltd.