Use smtp.gmail.com as smtp server?

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
a12345
New user
New user
Posts: 6
Joined: 2004-05-29 19:11

Use smtp.gmail.com as smtp server?

Postby a12345 » 2005-09-06 01:42

Hi Martin,

I was wodering whether it's possible to use smtp.gmail.com as the smtp server? I ran into this article describing using gmail as the alternate smtp server: http://www.lifehacker.com/software/emai ... 111166.php

I tried telnet smtp.gmail.com 587 (25 looks like being blocked), it seems accepting command.

I turned on the authentication mode for smtp using my id and password, however, I was not able to send emails...

Let me know whether I did something wrong...thanx...

The following is the debug info:

"APPLICATION" 30188 "2005-09-05 19:11:22.171" "SMTPDeliverer - Message 236: Relaying to host smtp.gmail.com."
"DEBUG" 30408 "2005-09-05 19:11:22.187" "PMADO:~SaveObject()"
"TCPIP" 30408 "2005-09-05 19:11:22.234" "IMAPD - Connection to client 127.0.0.1 closed."
"DEBUG" 30408 "2005-09-05 19:11:22.234" "SocketConnection::~SocketConnection()"
"DEBUG" 30188 "2005-09-05 19:11:22.234" "SD:_InitiateExternalConnection"
"DEBUG" 27548 "2005-09-05 19:11:22.234" "SD:DeliverMessage"
"APPLICATION" 27548 "2005-09-05 19:11:22.265" "SMTPDeliverer - Message 237: Delivering message from charles@mosaic.dyndns.org to eciconsult@gmail.com. File: H:\Program Files\hMailServer\Data\{03DFCFD7-D5B9-47D6-90EA-0510CE6F6D42}.eml"
"DEBUG" 30188 "2005-09-05 19:11:22.265" "SocketConnection::SocketConnection()"
"DEBUG" 27548 "2005-09-05 19:11:22.265" "RuleApplier::ApplyRules"
"DEBUG" 27548 "2005-09-05 19:11:22.281" "RuleApplier::~ApplyRules"
"DEBUG" 27548 "2005-09-05 19:11:22.281" "SD:_DeliverToExternalAccounts"
"APPLICATION" 27548 "2005-09-05 19:11:22.281" "SMTPDeliverer - Message 237: Relaying to host smtp.gmail.com."
"DEBUG" 27548 "2005-09-05 19:11:22.296" "SD:_InitiateExternalConnection"
"DEBUG" 27548 "2005-09-05 19:11:22.296" "SocketConnection::SocketConnection()"
"DEBUG" 30188 "2005-09-05 19:11:22.437" "SMTPCC::_ParseASCII()"
"DEBUG" 27548 "2005-09-05 19:11:22.453" "SMTPCC::_ParseASCII()"
"SMTPC" 27548 "2005-09-05 19:11:22.453" "64.233.163.109" "RECEIVED: 220 mx.gmail.com ESMTP c12sm95770nzc"
"SMTPC" 30188 "2005-09-05 19:11:22.453" "64.233.163.111" "RECEIVED: 220 mx.gmail.com ESMTP j4sm311456nzd"
"DEBUG" 30188 "2005-09-05 19:11:22.468" "SMTPCC:_SendData()"
"DEBUG" 27548 "2005-09-05 19:11:22.468" "SMTPCC:_SendData()"
"SMTPC" 27548 "2005-09-05 19:11:22.484" "64.233.163.109" "SENT: EHLO mosaic.dyndns.org"
"SMTPC" 30188 "2005-09-05 19:11:22.484" "64.233.163.111" "SENT: EHLO mosaic.dyndns.org"
"DEBUG" 30188 "2005-09-05 19:11:22.484" "SMTPCC:~_SendData()"
"DEBUG" 27548 "2005-09-05 19:11:22.484" "SMTPCC:~_SendData()"
"DEBUG" 27548 "2005-09-05 19:11:22.500" "SMTPCC::~_ParseASCII() - E2"
"DEBUG" 30188 "2005-09-05 19:11:22.500" "SMTPCC::~_ParseASCII() - E2"
"DEBUG" 30188 "2005-09-05 19:11:22.531" "SMTPCC::_ParseASCII()"
"DEBUG" 27548 "2005-09-05 19:11:22.531" "SMTPCC::_ParseASCII()"
"SMTPC" 27548 "2005-09-05 19:11:22.546" "64.233.163.109" "RECEIVED: 250-mx.gmail.com at your service"
"SMTPC" 30188 "2005-09-05 19:11:22.546" "64.233.163.111" "RECEIVED: 250-mx.gmail.com at your service"
"DEBUG" 30188 "2005-09-05 19:11:22.562" "SMTPCC::~_ParseASCII() - E1"
"DEBUG" 27548 "2005-09-05 19:11:22.562" "SMTPCC::~_ParseASCII() - E1"
"DEBUG" 27548 "2005-09-05 19:11:22.578" "SMTPCC::_ParseASCII()"
"SMTPC" 27548 "2005-09-05 19:11:22.578" "64.233.163.109" "RECEIVED: 250-SIZE 20971520"
"DEBUG" 30188 "2005-09-05 19:11:22.578" "SMTPCC::_ParseASCII()"
"SMTPC" 30188 "2005-09-05 19:11:22.578" "64.233.163.111" "RECEIVED: 250-SIZE 20971520"
"DEBUG" 27548 "2005-09-05 19:11:22.593" "SMTPCC::~_ParseASCII() - E1"
"DEBUG" 27548 "2005-09-05 19:11:22.593" "SMTPCC::_ParseASCII()"
"DEBUG" 30188 "2005-09-05 19:11:22.609" "SMTPCC::~_ParseASCII() - E1"
"DEBUG" 30188 "2005-09-05 19:11:22.625" "SMTPCC::_ParseASCII()"
"SMTPC" 27548 "2005-09-05 19:11:22.625" "64.233.163.109" "RECEIVED: 250-8BITMIME"
"DEBUG" 27548 "2005-09-05 19:11:22.640" "SMTPCC::~_ParseASCII() - E1"
"SMTPC" 30188 "2005-09-05 19:11:22.640" "64.233.163.111" "RECEIVED: 250-8BITMIME"
"DEBUG" 30188 "2005-09-05 19:11:22.640" "SMTPCC::~_ParseASCII() - E1"
"DEBUG" 27548 "2005-09-05 19:11:22.656" "SMTPCC::_ParseASCII()"
"SMTPC" 27548 "2005-09-05 19:11:22.656" "64.233.163.109" "RECEIVED: 250-STARTTLS"
"DEBUG" 30188 "2005-09-05 19:11:22.656" "SMTPCC::_ParseASCII()"
"SMTPC" 30188 "2005-09-05 19:11:22.656" "64.233.163.111" "RECEIVED: 250-STARTTLS"
"DEBUG" 27548 "2005-09-05 19:11:22.671" "SMTPCC::~_ParseASCII() - E1"
"DEBUG" 27548 "2005-09-05 19:11:22.671" "SMTPCC::_ParseASCII()"
"SMTPC" 27548 "2005-09-05 19:11:22.671" "64.233.163.109" "RECEIVED: 250 ENHANCEDSTATUSCODES"
"DEBUG" 30188 "2005-09-05 19:11:22.671" "SMTPCC::~_ParseASCII() - E1"
"DEBUG" 30188 "2005-09-05 19:11:22.687" "SMTPCC::_ParseASCII()"
"DEBUG" 27548 "2005-09-05 19:11:22.687" "SMTPCC:_SendData()"
"SMTPC" 27548 "2005-09-05 19:11:22.687" "64.233.163.109" "SENT: AUTH LOGIN"
"SMTPC" 30188 "2005-09-05 19:11:22.687" "64.233.163.111" "RECEIVED: 250 ENHANCEDSTATUSCODES"
"DEBUG" 30188 "2005-09-05 19:11:22.703" "SMTPCC:_SendData()"
"DEBUG" 27548 "2005-09-05 19:11:22.703" "SMTPCC:~_SendData()"
"SMTPC" 30188 "2005-09-05 19:11:22.718" "64.233.163.111" "SENT: AUTH LOGIN"
"DEBUG" 30188 "2005-09-05 19:11:22.718" "SMTPCC:~_SendData()"
"TCPIP" 29160 "2005-09-05 19:11:22.718" "IMAPD - Connection from 127.0.0.1 accepted."
"DEBUG" 29548 "2005-09-05 19:11:22.718" "SocketConnection::SocketConnection()"
"DEBUG" 30188 "2005-09-05 19:11:22.765" "SMTPCC::_ParseASCII()"
"DEBUG" 27548 "2005-09-05 19:11:22.781" "SMTPCC::_ParseASCII()"
"SMTPC" 27548 "2005-09-05 19:11:22.781" "64.233.163.109" "RECEIVED: 530 5.7.0 Must issue a STARTTLS command first c12sm95770nzc"
"DEBUG" 27548 "2005-09-05 19:11:22.781" "SMTPCC:_SendData()"
"SMTPC" 30188 "2005-09-05 19:11:22.781" "64.233.163.111" "RECEIVED: 530 5.7.0 Must issue a STARTTLS command first j4sm311456nzd"
"TCPIP" 29548 "2005-09-05 19:11:22.812" "IMAPD - Connection to client 127.0.0.1 closed."
"DEBUG" 29548 "2005-09-05 19:11:22.812" "SocketConnection::~SocketConnection()"
"DEBUG" 30188 "2005-09-05 19:11:22.812" "SMTPCC:_SendData()"
"SMTPC" 27548 "2005-09-05 19:11:22.828" "64.233.163.109" "SENT: ZWNpY29uc3VsdEBnbWFpbC5jb20="
"DEBUG" 27548 "2005-09-05 19:11:22.828" "SMTPCC:~_SendData()"
"SMTPC" 30188 "2005-09-05 19:11:22.843" "64.233.163.111" "SENT: ZWNpY29uc3VsdEBnbWFpbC5jb20="
"DEBUG" 30188 "2005-09-05 19:11:22.921" "SMTPCC:~_SendData()"
"DEBUG" 27548 "2005-09-05 19:11:22.937" "SMTPCC::_ParseASCII()"
"SMTPC" 27548 "2005-09-05 19:11:22.937" "64.233.163.109" "RECEIVED: 502 5.5.1 Unrecognized command c12sm95770nzc"
"DEBUG" 27548 "2005-09-05 19:11:22.937" "SD:~_InitiateExternalConnection-5"
"DEBUG" 27548 "2005-09-05 19:11:22.953" "SocketConnection::~SocketConnection()"
"DEBUG" 27548 "2005-09-05 19:11:22.968" "SD:~_DeliverToExternalAccounts-1"
"DEBUG" 27548 "2005-09-05 19:11:22.968" "SD:_CollectDeliveryResult"
"DEBUG" 30188 "2005-09-05 19:11:22.968" "SMTPCC::_ParseASCII()"
"SMTPC" 30188 "2005-09-05 19:11:22.968" "64.233.163.111" "RECEIVED: 502 5.5.1 Unrecognized command j4sm311456nzd"
"DEBUG" 30188 "2005-09-05 19:11:22.984" "SD:~_InitiateExternalConnection-5"
"DEBUG" 27548 "2005-09-05 19:11:22.984" "SD:~_CollectDeliveryResult"
"DEBUG" 30188 "2005-09-05 19:11:23.000" "SocketConnection::~SocketConnection()"
"DEBUG" 27548 "2005-09-05 19:11:23.000" "MessageCreator::CreateMessage()"
"DEBUG" 30188 "2005-09-05 19:11:23.015" "SD:~_DeliverToExternalAccounts-1"
"DEBUG" 27548 "2005-09-05 19:11:23.015" "PMADO:SaveObject()"
"DEBUG" 27548 "2005-09-05 19:11:23.031" "PMADO:AddObject()"
"DEBUG" 30188 "2005-09-05 19:11:23.031" "SD:_CollectDeliveryResult"
"DEBUG" 30188 "2005-09-05 19:11:23.046" "SD:~_CollectDeliveryResult"
"DEBUG" 27548 "2005-09-05 19:11:23.046" "Adding message to database. File: H:\Program Files\hMailServer\Data\{C6AB859E-5C0D-499D-ABEC-245BE3472B10}.eml"
"DEBUG" 27548 "2005-09-05 19:11:23.046" "PMADO:~AddObject()"
"DEBUG" 30188 "2005-09-05 19:11:23.062" "MessageCreator::CreateMessage()"
"DEBUG" 27548 "2005-09-05 19:11:23.109" "PMADO:~SaveObject()"
"DEBUG" 30188 "2005-09-05 19:11:23.125" "PMADO:SaveObject()"
"DEBUG" 30188 "2005-09-05 19:11:23.125" "PMADO:AddObject()"
"DEBUG" 27548 "2005-09-05 19:11:23.125" "MessageCreator::~CreateMessage()"
"DEBUG" 27548 "2005-09-05 19:11:23.140" "PersistentMessage::DeleteObject()"
"DEBUG" 30188 "2005-09-05 19:11:23.140" "Adding message to database. File: H:\Program Files\hMailServer\Data\{6A632919-86B3-430C-8187-762F96FD0A51}.eml"
"DEBUG" 29412 "2005-09-05 19:11:23.140" "PersistentMessage::ReadObject()"
"DEBUG" 29412 "2005-09-05 19:11:23.156" "PersistentMessage::~ReadObject()"
"DEBUG" 30188 "2005-09-05 19:11:23.171" "PMADO:~AddObject()"
"DEBUG" 27548 "2005-09-05 19:11:23.171" "PersistentMessage::DeleteFile()"
"DEBUG" 27548 "2005-09-05 19:11:23.187" "PersistentMessage::~DeleteFile() - E3"
"DEBUG" 30188 "2005-09-05 19:11:23.203" "PMADO:~SaveObject()"
"DEBUG" 29996 "2005-09-05 19:11:23.218" "SD:DeliverMessage"
"APPLICATION" 29996 "2005-09-05 19:11:23.234" "SMTPDeliverer - Message 239: Delivering message from mailer-daemon@mosaic.dyndns.org to charles@mosaic.dyndns.org. File: H:\Program Files\hMailServer\Data\{C6AB859E-5C0D-499D-ABEC-245BE3472B10}.eml"
"DEBUG" 30188 "2005-09-05 19:11:23.234" "MessageCreator::~CreateMessage()"
"DEBUG" 27548 "2005-09-05 19:11:23.234" "PersistentMessage::DeleteObject() - E5"
"DEBUG" 29412 "2005-09-05 19:11:23.265" "PersistentMessage::ReadObject()"
"DEBUG" 29412 "2005-09-05 19:11:23.281" "PersistentMessage::~ReadObject()"
"APPLICATION" 27548 "2005-09-05 19:11:23.296" "SMTPDeliverer - Message 237: Message delivery thread completed."
"DEBUG" 30188 "2005-09-05 19:11:23.296" "PersistentMessage::DeleteObject()"
"DEBUG" 29996 "2005-09-05 19:11:23.296" "RuleApplier::ApplyRules"
"DEBUG" 30072 "2005-09-05 19:11:23.328" "SD:DeliverMessage"

User avatar
martin
Developer
Developer
Posts: 6677
Joined: 2003-11-21 01:09
Location: Sweden
Contact:

Postby martin » 2005-09-06 11:38

smtp.gmail.com requires TLS which hMailServer currently does not support.

sumnerp
New user
New user
Posts: 5
Joined: 2005-09-23 08:10

Postby sumnerp » 2005-09-25 08:54

You can use stunnel to enable this. You can also collect mail from Google using POP3 over stunnel. Once you have set up POP3 and SMTP on Goggle configure stunnel to act as a local Google proxy:

Code: Select all

# GLOBAL OPTIONS

client = yes

output = stunnel-log.txt
debug=7

taskbar = yes


# SERVICE-LEVEL OPTIONS


[SMTP Gmail ]
accept = 127.0.0.1:1099
connect = smtp.gmail.com:465

[POP3 Gmail ]
accept = 127.0.0.1:108
connect = pop.gmail.com:995

This listens for outgoing mail on port 1099 and for collections on port 108. Configure a route in hMailServer to deliver to localhost port 1099, set Server Requires Authentication and use your full gmail address and pasword.

Hope this helps.


Return to “General discussions”



Who is online

Users browsing this forum: jimimaseye and 3 guests