hello,
i've been using zentyal 2.0 for mailserver since last year and working fine, activate TLS and authentication option for smtp in mail GUI,
allow relay only from local LAN, and only authenticated user from outside LAN. I check for open relay using mailradar.com as
i don't want the server to be open relay.
but due to ISP policy to block all outgoing from port 25, the server begin this issues. FYI we have static IP public.
they said they just block port 25, and they also open a mail relay on their port 587.
so i figured to use the smarthost and enter their relay address with :587 also using our account to login.
i work for some times,
but too bad their server seems cannot handle all email from their customer, so sometimes our mails is deferred,
and even bounced back. I already try to complaint about this but seems its not going to be resolve soon.
my question is, it is possible to use the port 587 for outgoing but not using smarthost?
because when I use the smarthost setting, i could see in mail.log that our server is sending mail using port 587,
but when I empty the smarthost, it got back to sending mail using port 25.
1. I enable the option submission inet n - - - - smtpd on master.cf.mas,
i can send only to our local user, when sending email outside, on log I see mailserver still using port 25.
i can receive email from outside, but cannot send email to outside.
below is some log when i use no 1 setting, and send email to outside.
Apr 22 23:42:48 WELLDONE2 postfix/smtpd[15113]: connect from unknown[111.94.127.137]
Apr 22 23:42:49 WELLDONE2 postfix/smtpd[15113]: setting up TLS connection from unknown[111.94.127.137]
Apr 22 23:42:50 WELLDONE2 postfix/smtpd[15113]: Anonymous TLS connection established from unknown[111.94.127.137]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
Apr 22 23:42:51 WELLDONE2 postfix/smtpd[15113]: B256510046C0B: client=unknown[111.94.127.137], sasl_method=PLAIN, sasl_username=admin@welldone-communications.com
Apr 22 23:42:52 WELLDONE2 postfix/cleanup[14747]: B256510046C0B: message-id=<
4F94335D.9000704@welldone-communications.com>
Apr 22 23:42:52 WELLDONE2 postfix/qmgr[14543]: B256510046C0B: from=<
admin@welldone-communications.com>, size=898, nrcpt=1 (queue active)
Apr 22 23:42:52 WELLDONE2 amavis[3780]: (03780-02) ESMTP::10024 /var/lib/amavis/amavis-20120422T231704-03780: <
admin@welldone-communications.com> -> <
bouvy@padepokan-suralaya.co.cc> SIZE=898 Received: from mail.welldone-communications.com ([127.0.0.1]) by localhost (WELLDONE2.localdomain [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <
bouvy@padepokan-suralaya.co.cc>; Sun, 22 Apr 2012 23:42:52 +0700 (WIT)
Apr 22 23:42:52 WELLDONE2 amavis[3780]: (03780-02) Checking: 3PMNyum3dRAS [111.94.127.137] <
admin@welldone-communications.com> -> <
bouvy@padepokan-suralaya.co.cc>
Apr 22 23:42:52 WELLDONE2 amavis[3780]: (03780-02) Open relay? Nonlocal recips but not originating:
bouvy@padepokan-suralaya.co.ccApr 22 23:42:52 WELLDONE2 postfix/smtpd[15113]: disconnect from unknown[111.94.127.137]
Apr 22 23:42:53 WELLDONE2 postfix/smtpd[14812]: connect from localhost[127.0.0.1]
Apr 22 23:42:53 WELLDONE2 postfix/smtpd[14812]: 6C25810046C0C: client=localhost[127.0.0.1]
Apr 22 23:42:53 WELLDONE2 postfix/cleanup[14747]: 6C25810046C0C: message-id=<
4F94335D.9000704@welldone-communications.com>
Apr 22 23:42:53 WELLDONE2 postfix/qmgr[14543]: 6C25810046C0C: from=<
admin@welldone-communications.com>, size=1400, nrcpt=1 (queue active)
Apr 22 23:42:53 WELLDONE2 postfix/smtpd[14812]: disconnect from localhost[127.0.0.1]
Apr 22 23:42:53 WELLDONE2 amavis[3780]: (03780-02) FWD via SMTP: <
admin@welldone-communications.com> -> <
bouvy@padepokan-suralaya.co.cc>,BODY=7BIT 250 2.0.0 Ok, id=03780-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6C25810046C0C
Apr 22 23:42:53 WELLDONE2 amavis[3780]: (03780-02) Passed, <
admin@welldone-communications.com> -> <
bouvy@padepokan-suralaya.co.cc>, quarantine 3PMNyum3dRAS, Message-ID: <
4F94335D.9000704@welldone-communications.com>,
Apr 22 23:42:53 WELLDONE2 amavis[3780]: (03780-02) Hits: -0.199
Apr 22 23:42:53 WELLDONE2 amavis[3780]: (03780-02) Passed CLEAN, <
admin@welldone-communications.com> -> <
bouvy@padepokan-suralaya.co.cc>, Hits: -0.199, tag=0, tag2=5, kill=5, queued_as: 6C25810046C0C, 0/Y/0/0
Apr 22 23:42:53 WELLDONE2 postfix/smtp[14779]: B256510046C0B: to=<
bouvy@padepokan-suralaya.co.cc>, relay=127.0.0.1[127.0.0.1]:10024, delay=2, delays=0.63/0/0/1.4, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=03780-02, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 6C25810046C0C)
Apr 22 23:42:53 WELLDONE2 postfix/qmgr[14543]: B256510046C0B: removed
Apr 22 23:43:14 WELLDONE2 postfix/smtp[14548]: connect to aspmx.l.google.com[209.85.225.27]:25: Connection timed out
Apr 22 23:43:26 WELLDONE2 dovecot: pop3-login: Login: user=<
admin@welldone-communications.com>, method=PLAIN, rip=111.94.127.137, lip=192.168.10.9, TLS
Apr 22 23:43:29 WELLDONE2 dovecot: POP3(
admin@welldone-communications.com): Disconnected: Logged out top=0/0, retr=0/0, del=0/1399, size=60612792
Apr 22 23:43:35 WELLDONE2 postfix/smtp[14548]: connect to alt2.aspmx.l.google.com[74.125.45.27]:25: Connection timed out
Apr 22 23:43:56 WELLDONE2 postfix/smtp[14548]: connect to alt1.aspmx.l.google.com[209.85.225.27]:25: Connection timed out
Apr 22 23:44:17 WELLDONE2 postfix/smtp[14548]: connect to aspmx5.googlemail.com[74.125.157.27]:25: Connection timed out
Apr 22 23:44:38 WELLDONE2 postfix/smtp[14548]: connect to aspmx2.googlemail.com[74.125.43.27]:25: Connection timed out
Apr 22 23:44:38 WELLDONE2 postfix/smtp[14548]: 6C25810046C0C: to=<
bouvy@padepokan-suralaya.co.cc>, relay=none, delay=105, delays=0.03/0/105/0, dsn=4.4.1, status=deferred (connect to aspmx2.googlemail.com[74.125.43.27]:25: Connection timed out)
2. I disable the #smtp inet n - - - - smtpd on master.cf.mas, change into 587 inet n - - - - smtpd,
i can send only to our local user, when sending email outside, on log I see mailserver still using port 25.
i cannot receive or send email from outside.
below is some log when i use no 2 setting, and send email to outside.
Apr 22 23:30:03 WELLDONE2 postfix/smtp[12018]: connect to alt2.gmail-smtp-in.l.google.com[173.194.73.26]:25: Connection timed out
Apr 22 23:30:24 WELLDONE2 postfix/smtp[12018]: connect to alt3.gmail-smtp-in.l.google.com[173.194.66.26]:25: Connection timed out
Apr 22 23:30:45 WELLDONE2 postfix/smtp[12018]: connect to alt4.gmail-smtp-in.l.google.com[173.194.65.26]:25: Connection timed out
Apr 22 23:30:45 WELLDONE2 postfix/smtp[12018]: B9D2B10046BE7: to=<
cyrila06production@gmail.com>, relay=none, delay=191707, delays=191601/0.02/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.65.26]:25: Connection timed out)
Apr 22 23:30:45 WELLDONE2 postfix/smtp[12018]: B9D2B10046BE7: to=<
indralestarya@gmail.com>, relay=none, delay=191707, delays=191601/0.02/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.65.26]:25: Connection timed out)
both setting is not using smarthost from our ISP.
Thanks.