Koozali.org: home of the SME Server

ISP SMTP server with authentication

Offline waton

  • *
  • 14
  • +0/-0
    • http://www.opensynergy.org
ISP SMTP server with authentication
« on: November 01, 2007, 08:32:56 AM »
Dear all,

I got a problem with sendiing email using ISP SMTP server. Email not sent and still in queue.
Current qmail log say:
Code: [Select]
@4000000047297c913931692c status: local 0/10 remote 1/20
@4000000047297c9724006864 delivery 167: deferral: Connected_to_127.0.0.1_but_greeting_failed./Remote_host_said:_451_Upstream_SMTP_server_not_available/
@4000000047297c9724007fd4 status: local 0/10 remote 0/20

My setting:
SMTP proxy status: disabled

Email delivery setting:
Address of Internet provider's mail server: mail.my-isp.com
SMTP Authentication for Internet provider :enabled
Mail server user id:user@my-isp.com
Mail server password: password_user@my-isp.com
Hostname and adresses setting:
My domain = my-isp.com
Hostname:mail.my-isp.com
Location:remote
IP address:202.112.xxx.xxx

Please help




Offline mmccarn

  • *
  • 2,656
  • +10/-0
Re: ISP SMTP server with authentication
« Reply #1 on: November 01, 2007, 05:49:23 PM »
Since your SMTP proxy is turned off, you should be able to configure a test client on the internal network to send email out through your ISP directly.  I'd do this in order to triple-check that I had the correct username and password values...

Offline waton

  • *
  • 14
  • +0/-0
    • http://www.opensynergy.org
Re: ISP SMTP server with authentication
« Reply #2 on: November 02, 2007, 06:57:01 AM »
Client can send email out trough ISP directly. I found that ISP smtp reject connection from server because my SME server use system name 'mysmeserver.my-isp.com' that can't resolve by ISP smtp.
Code: [Select]
Net::SMTP=GLOB(0x8ea2f90)>>> HELO mysmeserver.my-isp.com
Net::SMTP=GLOB(0x8ea2f90)<<< 550 Forged HELO: you are not mysmeserver.my-isp.com

My workaround was change code on /usr/local/sbin/smtp-auth-proxy.pl. For some reason I can't change my server system name, so I change Hello value to 'localhost'.

Code: [Select]
my $smtp = Net::SMTP->new($smarthost,
                            Hello => 'localhost',
                            #Hello => "${system_name}.${domain_name}",
                            Debug => $debug
                        );
    unless ($smtp)
    {
        print "451 Upstream SMTP server not available\n";
        warn "No SMTP connection to ISP server\n";
        exit;
    }

Any other idea?

Thank's

Offline cactus

  • *
  • 4,880
  • +3/-0
    • http://www.snetram.nl
Re: ISP SMTP server with authentication
« Reply #3 on: November 02, 2007, 07:44:11 AM »
My workaround was change code on /usr/local/sbin/smtp-auth-proxy.pl. For some reason I can't change my server system name, so I change Hello value to 'localhost'.

...

Any other idea?
Did you try to change the system name by login in to a SME Server shell as admin (with the same password as the root user). You will be presented a menu, where you can choose to reconfigure your system and in th first step you should be able to change the name of your server.
Be careful whose advice you buy, but be patient with those who supply it. Advice is a form of nostalgia, dispensing it is a way of fishing the past from the disposal, wiping it off, painting over the ugly parts and recycling it for more than its worth ~ Baz Luhrmann - Everybody's Free (To Wear Sunscreen)

Offline waton

  • *
  • 14
  • +0/-0
    • http://www.opensynergy.org
Re: ISP SMTP server with authentication
« Reply #4 on: November 02, 2007, 08:02:56 AM »
Yes, I did. But I don't want change my system name.

Thx