Koozali.org: home of the SME Server

sky/google mail server wont send emails

Offline mrooks1984

  • 1
  • +0/-0
sky/google mail server wont send emails
« on: July 07, 2012, 08:47:57 PM »
hello all, hoping someone can help me.
i have setup my server all internal emails and incoming email is working fine.
the problem is it wont send any external email.
i have set the following:
Address of Internet provider's mail server to smtp.gmail.com:465
SMTP Authentication for Internet provider to enabled
Mail server user id to my email address
Mail server password to my password.

/var/log/qpsmtpd/current says:
2012-07-07 19:25:00.564124500 7835 dispatching MAIL FROM:<web@cyberglide.co.uk>
2012-07-07 19:25:00.564124500 7835 full from_parameter: FROM:<web@cyberglide.co.uk>
2012-07-07 19:25:00.564128500 7835 getting mail from <web@cyberglide.co.uk>
2012-07-07 19:25:00.564129500 7835 250 <web@cyberglide.co.uk>, sender OK - how exciting to get mail from you!
2012-07-07 19:25:00.564130500 7835 dispatching RCPT TO:<rookster1984@sky.com>
2012-07-07 19:25:00.564131500 7835 250 <rookster1984@sky.com>, recipient ok
2012-07-07 19:25:00.564132500 7835 dispatching DATA
2012-07-07 19:25:00.564132500 7835 354 go ahead
2012-07-07 19:25:00.564133500 7835 spooling message to disk
2012-07-07 19:25:00.564136500 7835 virus::clamav plugin (data_post): Changing permissions on file to permit scanner access
2012-07-07 19:25:00.570975500 7835 virus::clamav plugin (data_post): clamscan results: /var/spool/qpsmtpd/1341685500:7835:0: OK
2012-07-07 19:25:00.570977500 7835 logging::logterse plugin (queue): ` 127.0.0.1   localhost   localhost   <web@cyberglide.co.uk>   <rookster1984@sky.com>   queued      <20120707192500.58153qe35yu2u1wk@192.168.0.2>   
2012-07-07 19:25:00.570979500 7838 queue::qmail_2dqueue plugin (queue): (for 7835 ) Queuing qp 7838 to /var/qmail/bin/qmail-queue
2012-07-07 19:25:00.644995500 7835 250 Queued! 1341685500 qp 7838 <20120707192500.58153qe35yu2u1wk@192.168.0.2>
2012-07-07 19:25:00.644995500 7835 dispatching QUIT
2012-07-07 19:25:00.644995500 7835 221 cyberglide.co.uk closing connection. Have a wonderful day.
2012-07-07 19:25:00.644995500 7835 click, disconnecting
2012-07-07 19:25:01.545613500 2666 cleaning up after 7835

/var/log/smtp-auth

2012-07-07 19:15:34.120652500 No SMTP connection to server smtp.tools.sky.com:465 on port 25
2012-07-07 19:17:46.597219500 No SMTP connection to server smtp.tools.sky.com:465 on port 25
2012-07-07 19:24:17.594074500 2012/07/07-19:24:17 Server closing!
2012-07-07 19:24:17.594077500 2012/07/07-19:24:17 esmith::SMTPAuthProxy (type Net::Server::Fork) starting! pid(7799)
2012-07-07 19:24:17.594078500 Using default listen value of 128
2012-07-07 19:24:17.594079500 Binding to TCP port 26 on host localhost
2012-07-07 19:24:17.594079500 Setting gid to "99 99"
2012-07-07 19:24:17.594080500 Setting uid to "99"
2012-07-07 19:27:04.227566500 No SMTP connection to server smtp.gmail.com:465 on port 25
2012-07-07 19:33:51.232608500 No SMTP connection to server smtp.gmail.com:465 on port 25
2012-07-07 19:35:36.122593500 No SMTP connection to server smtp.gmail.com:465 on port 25
2012-07-07 19:41:47.022127500 No SMTP connection to server smtp.gmail.com:465 on port 25

if i set it to smtp.gmail.com: 587 i get a email straight back saying:

Hi. This is the qmail-send program at cyberglide.co.uk.
 I'm afraid I wasn't able to deliver your message to the following addresses.
 This is a permanent error; I've given up. Sorry it didn't work out.
 
<rookster1984@sky.com>:
 Connected to 127.0.0.1 but sender was rejected.
 Remote host said: 530 5.7.0 Must issue a STARTTLS command first. k8sm19703080wia.6

thanks all.

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: sky/google mail server wont send emails
« Reply #1 on: July 08, 2012, 01:02:05 AM »
Instead of attempting to connect to smtp.gmail.com on port 465, the auth proxy is attempting to a host called 'smtp.gmail.com:465' on port 25:

2012-07-07 19:27:04.227566500 No SMTP connection to server smtp.gmail.com:465 on port 25

Did you configure this via the server-manager panel? If so, it needs to be fixed, and you should create a bug report in the bug tracker so that that can be done.

Meanwhile, see if you can fix the configuration - you want port 465, and hostname of just smtp.gmail.com.

Is smtp.gmail.com really your ISP's mail server?

Offline MSmith

  • *
  • 675
  • +0/-0
Re: sky/google mail server wont send emails
« Reply #2 on: July 18, 2012, 03:37:14 PM »
Is this still operative in SME 8?  I remember using it once upon a time ...

http://forums.contribs.org/index.php?topic=31035.0

config set SMTPSmartHost "smtp.your.provider:587"
signal-event email-update

Seems to me I remember that setting the ":587" in Server Manager did not actually work, but the command line did.
...

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: sky/google mail server wont send emails
« Reply #3 on: July 18, 2012, 05:21:40 PM »
Is this still operative in SME 8?

It probably is, but only if authentication is disabled for outbound email - i.e. the auth proxy is not being used.