Author Topic: SMTP using ipaddress ok but using mydomain.com timeout  (Read 3832 times)

yudidw2

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
SMTP using ipaddress ok but using mydomain.com timeout
« on: April 19, 2012, 04:58:40 am »
Hallo,

please help me...
i'm using zentyal for email server,
Email successfully send in Thunderbird client if i set smtp using the IPAddress of email server,
but when i set smtp using mydomain.com or smtp.mydomain.com, user getting the connection time out send the message.
something wrong with zentyal configuration?

Thanks you.

christian

  • Guest
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #1 on: April 19, 2012, 08:05:52 am »
DNS  ???

Can you check that client is able to resolve names?
Is there any DNS somewhere? If yes, is this DNS defined as DNS to use at client level and if yes, does this DNS contain entry for "smtp.yourdomain.com"?

Nothing wrong with Zentyal conf here  :P

yudidw2

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #2 on: April 19, 2012, 09:29:35 am »
DNS  ???

Can you check that client is able to resolve names?
Is there any DNS somewhere? If yes, is this DNS defined as DNS to use at client level and if yes, does this DNS contain entry for "smtp.yourdomain.com"?

Nothing wrong with Zentyal conf here  :P

sorry, i mean my zentyal configuration..
how to check that the client is able to resolve names?


christian

  • Guest
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #3 on: April 19, 2012, 09:31:04 am »
ping smtp.yourdomain.com from command line

what is client OS?

yudidw2

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #4 on: April 19, 2012, 09:35:30 am »
ping smtp.yourdomain.com from command line

what is client OS?

ping smtp.mydomain.com RTO
ping mydomain.com Reply
ping mail.mydomain.com Reply

client OS (windows &) using thunderbird mail client

christian

  • Guest
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #5 on: April 19, 2012, 09:39:02 am »
RTO ???? what does it mean ? (sorry if I'm dumb  :-[ )

christian

  • Guest
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #6 on: April 19, 2012, 09:40:24 am »
btw, are mail.domain.com and smtp.domain.com supposed to be same server (Zentyal hehehe)?
If yes, why not using mail.domain.com in your Thunderbird conf?

yudidw2

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #7 on: April 19, 2012, 09:44:20 am »
btw, are mail.domain.com and smtp.domain.com supposed to be same server (Zentyal hehehe)?
If yes, why not using mail.domain.com in your Thunderbird conf?
it is the same server, but using mail.domain.com or smtp.domain.com always getting connection timeout.
when i use manual config and set smtp server to local network ipaddress(zentyal), the message succesfully send

yudidw2

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #8 on: April 19, 2012, 09:45:05 am »
RTO ???? what does it mean ? (sorry if I'm dumb  :-[ )
Request Time Out

christian

  • Guest
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #9 on: April 19, 2012, 09:50:47 am »
so, you have 2 different issues if I understand well:

- your DNS doesn't contain any entry for smtp.domain.com  (but do you need one as mail.domain.com already exists and can be used)
- Thunderbird doesn't work when using FQDN. Strange  :o  are you sure that config is really the same when switching from IP address to FQDN? I mean in term of port to be used, TLS, authentication ...

yudidw2

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #10 on: April 20, 2012, 03:20:23 am »
so, you have 2 different issues if I understand well:

- your DNS doesn't contain any entry for smtp.domain.com  (but do you need one as mail.domain.com already exists and can be used)
- Thunderbird doesn't work when using FQDN. Strange  :o  are you sure that config is really the same when switching from IP address to FQDN? I mean in term of port to be used, TLS, authentication ...

did you mean DNS settings in zentyal ebox menu?
In Domain name server resolver I entered with the ip address of DNS domain.
In Infrastructure DNS menu list of domain I entered with :
domain.com --> hostname  : mail, mail exchanger : mail, name servers : mail
ip address : 192.168.1.10 (local ip)

this is main.cf postfix config :

# Generated by Zentyal
# See /usr/share/postfix/main.cf.dist for a commented, more complete version

# require helo
smtpd_delay_reject  = yes
smtpd_helo_required = yes

strict_rfc821_envelopes = yes
disable_vrfy_command = yes

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

myorigin = /etc/mailname
myhostname = mail.domain.com
mydestination = $myorigin,$myhostname,localhost,localhost.$mydomain
smtp_helo_name = mail.domain.com
alias_maps = hash:/etc/aliases

alias_database = hash:/etc/aliases
local_recipient_maps = proxy:unix:passwd.byname $alias_maps

relayhost =

transport_maps = hash:/etc/postfix/transport
zarafa_destination_recipient_limit = 1



mynetworks = 127.0.0.0/8

message_size_limit = 4194304
mailbox_size_limit = 0
virtual_mailbox_limit = 0
recipient_delimiter = +
inet_interfaces = all

# Virtual Aliases
virtual_alias_maps = ldap:valiases
valiases_server_host = 127.0.0.1
valiases_search_base = ou=mailalias,ou=postfix,dc=dove
valiases_query_filter = (&(mail=%s)(objectClass=CourierMailAlias))
valiases_result_attribute = maildrop
aliases_bind = no

# Virtual Domains
dovecot_destination_recipient_limit = 1
virtual_transport = dovecot
#virtual_transport = virtual
virtual_mailbox_base = /var/vmail/
virtual_mailbox_maps= ldap:ldapvirtualmap

ldapvirtualmap_server_host = 127.0.0.1:389
ldapvirtualmap_bind = no
ldapvirtualmap_search_base = ou=Users,dc=dove
ldapvirtualmap_query_filter = (&(mail=%s)(!(quota=-1))(objectClass=CourierMailAccount))
ldapvirtualmap_result_attribute = mailbox

virtual_mailbox_domains = ldap:vmaildomains
vmaildomains_server_host = 127.0.0.1
vmaildomains_bind = no
vmaildomains_search_base =  ou=postfix,dc=dove
vmaildomains_query_filter = (|(&(objectclass=domain)(domainComponent=%s))(&(objectclass=CourierMailAlias)(mail=@%s)))
vmaildomains_result_attribute = dc, maildrop


virtual_minimum_uid = 100
virtual_uid_maps = static:108
virtual_gid_maps = static:115


## TLS/SSL
smtpd_use_tls = yes
smtpd_tls_note_starttls = yes
smtpd_tls_key_file  = /etc/postfix/sasl/postfix.pem
smtpd_tls_cert_file = /etc/postfix/sasl/postfix.pem
smtpd_tls_loglevel = 1


smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, reject_unauth_destination, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, check_helo_access pcre:/etc/postfix/helo_checks.pcre


#SASL authentication
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain =
broken_sasl_auth_clients = yes
smtpd_tls_auth_only = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain =  $myorigin

content_filter=smtp-amavis:127.0.0.1:10024





christian

  • Guest
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #11 on: April 20, 2012, 08:45:47 am »
Frankly I did look yet at your postfix conf. I don't think any problem there would generate this behaviour.
However, looking at your DNS settings, it appears that you do not describe "smtp" but "mail". I'm not surprised you can't resolve "smtp". I'm surprised you try to use it.
As you have defined everything with "mail", configure Thunderbird with "mail" instead.

Then last point will be to understand why, assuming problem still exists, "mail.yourdomain.com" is not found from Thunderbird.
I rather suspect some typo or use of host name instead of fqdn  ::)

yudidw2

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #12 on: April 20, 2012, 09:27:25 am »
Frankly I did look yet at your postfix conf. I don't think any problem there would generate this behaviour.
However, looking at your DNS settings, it appears that you do not describe "smtp" but "mail". I'm not surprised you can't resolve "smtp". I'm surprised you try to use it.
As you have defined everything with "mail", configure Thunderbird with "mail" instead.

Then last point will be to understand why, assuming problem still exists, "mail.yourdomain.com" is not found from Thunderbird.
I rather suspect some typo or use of host name instead of fqdn  ::)

ok... i use mail.domain.com at thunderbird but problem still exist.
what should i do? where i can change ?

christian

  • Guest
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #13 on: April 20, 2012, 09:32:28 am »
so, to summarize:
- Thunderbird is configured to user mail.yourdomain.com as smtp server
- on this same PC, if you type "ping mail.yourdomain.com" it resolves this name and reaches mail server
- .... but from Thunderbird, you get time out

correct ?

yudidw2

  • Zen Apprentice
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: SMTP using ipaddress ok but using mydomain.com timeout
« Reply #14 on: April 20, 2012, 11:28:12 am »
so, to summarize:
- Thunderbird is configured to user mail.yourdomain.com as smtp server

correct

- on this same PC, if you type "ping mail.yourdomain.com" it resolves this name and reaches mail server
- .... but from Thunderbird, you get time out
correct ?

correct