Koozali.org: home of the SME Server

Mails to external address

Offline leonp

  • ***
  • 43
  • +0/-0
Mails to external address
« on: November 28, 2017, 06:55:15 PM »
I am sorry to disturb by dumb question -sure it was asked. But I searched for hours and didn't find...
I installed the las SME server, configured everything and have problem with mail server sending mails outside the local network - everything is rejected with "relaying denied".
If I set:
mkdir -p /etc/e-smith/templates-custom/var/service/qpsmtpd/config/relayclients
echo "192.168.50." >\
/etc/e-smith/templates-custom/var/service/qpsmtpd/config/relayclients/80relayFromLocalNetwork
I now can send mail outside, but:
1. Why should I do this? It seems incorrect.
2. Incoming mails are not filtered with the message "skip, relay client".
Thanks a lot ahead.

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Mails to external address
« Reply #1 on: November 28, 2017, 10:27:28 PM »
Hello,

Welcome here.

Which version?

You do not have to do this. Just need to use your login and password to login during the smtp transaction.
I really suggest to Remove this template, this woulf allow an infected pc to send email eith more ease.

Offline leonp

  • ***
  • 43
  • +0/-0
Re: Mails to external address
« Reply #2 on: November 29, 2017, 09:58:46 AM »
I also think that this is incorrect.
But when I remove this, I can't send a mail from local network to external addresses!
But i can send mails to external addresses via webmail!
My SMTP connection uses SSMTP authentication, but still...
My version is 9.2.

Many thanks for any help!

P.S.:
[root@extern2 e-smith]# db configuration show qpsmtpd relay
qpsmtpd=service
    Authentication=enabled
    Bcc=disabled
    BccMode=cc
    BccUser=maillog
    DNSBL=disabled
    LogLevel=6
    MaxScannerSize=25000000
    RBLList=bl.spamcop.net,dnsbl-1.uceprotect.net,dnsbl-2.uceprotect.net,psbl.surriel.com,zen.spamhaus.org
    RHSBL=disabled
    RelayRequiresAuth=enabled
    SBLList=multi.surbl.org,black.uribl.com,rhsbl.sorbs.net
    TlsBeforeAuth=1
    UBLList=multi.surbl.org:8-16-64-128,black.uribl.com,rhsbl.sorbs.net
    URIBL=disabled
    access=public
    qplogsumm=disabled
    status=enabled
« Last Edit: November 29, 2017, 12:27:34 PM by leonp »

Offline leonp

  • ***
  • 43
  • +0/-0
Re: Mails to external address
« Reply #3 on: November 29, 2017, 12:35:14 PM »
I am truly sorry for disturbance - the cause of the situation was some bug in KDE kmail client.
The "autodetect" button in kmail automatically removes "authentication required" option independent of the detection result!
And I was sure that the authentication is active.

As a wish to developers I should say that diagnostics of the case can be better - why not to say something like "relaying denied, no authentication provided" ?