View Issue Details

IDProjectCategoryView StatusLast Update
0003435SOGowith SOGopublic2017-04-11 10:40
Reportergeorgios Assigned Toludovic  
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionsuspended 
PlatformSme Server (Centos mail Distrib)OSCentosOS Version7
Product Version2.3.5 
Summary0003435: Auto Reply / Vacation - Not distributed for some clients - Syntax error message 5.5.2
Description

Hi,

Different users create Auto Reply during vacation period:

Some senders are not receiving the auto message because the "AUTO REPLY" format has a "Syntax error" / "Remote host said: 555 5.5.2"

In the header of the message the message has always : "Return-Path: <"<>"@MYDOMAIN.COM>", an empty return path.

Connected to 1.1.1.IP but sender was rejected.
Remote host said: 555 5.5.2 Syntax error.

Steps To Reproduce

Test OK:

  • Internally, messages is arriving
  • When receiving a message from Outlook 365 mail server, the auto reply go fine to the Sender fine.

Test NOT OK:

  • When receiving from Gmail, the auto message will never go to the sender. ->Failure notice message is sending to the Admin 5.5.2 (rejected).
  • When receiving from Some Imap mail server, the auto message will never go to the sender.
    ->Failure notice message is sending to the Admin 5.5.2 (rejected).
Additional Information

Typical Error for Auto Reply with a Gmail Account or other:

Return-Path: <"<>"@MYDOMAIN.COM>
Received: (qmail 2862 invoked by uid 5124); 12 Jan 2016 09:24:39 -0000
X-Sieve: Pigeonhole Sieve 0.2.2
Message-ID: <dovecot-sieve-1452590679-832995-0@MYDOMAIN.COM>
Date: Tue, 12 Jan 2016 11:24:39 +0200
From: <LOCALMAIL@MYDOMAIN.COM>
To: <MAIL@gmail.com>
Subject: Auto: Re: My Subject
In-Reply-To:......................

TagsNo tags attached.

Activities

georgios

georgios

2016-03-03 13:49

reporter   ~0009628

Any idea please?

Christian Mack

Christian Mack

2016-03-04 11:00

developer   ~0009634

Is the sender a "no-reply@...." address?

georgios

georgios

2016-03-29 06:47

reporter   ~0009866

Last edited: 2016-03-29 06:51

Hi Christian,

yes, exactly, when sending the auto reply to whatever email, in the mail header, I can see that the return path is empty like this:

"Return-Path: <"<>"@mydomain.com>"
Received: (qmail 30999 invoked by uid 5001); 29 Mar 2016 06:50:08 -0000
X-Sieve: Pigeonhole Sieve 0.2.2

Then some emails accept the auto reply but around 50% of email servers do not accept the auto reply from sogo and then I receive on my postmaster@ email a failure notice.
For example, Gmail's account do not accept the sogo auto reply.

thank you for your help

Christian Mack

Christian Mack

2016-03-30 09:42

developer   ~0009890

Return-Path should then be "<>" only, no @mydomain.com!
Do you have set an option to add that in your SMTP server?

georgios

georgios

2016-03-30 10:33

reporter   ~0009892

Hi,

The return path is always written as:

Return-Path: <"<>"@mydomain.com>

I can't understand why, I didn't have set anything, where should I look into my SMTP server ?
Is any option in Sogo conf to set ?

Thank you

Christian Mack

Christian Mack

2016-03-30 11:24

developer   ~0009896

This depends on your SMTP server.
Which one are you using?
postfix, sendmail, exim or another one?

In sogo.conf there is only a way to set the used smtp server or smtp send command:
SOGoMailingMechanism, SOGoSMTPServer, WOSendMail + (SOGoSMTPAuthenticationType, SOGoForceExternalLoginWithEmail)

georgios

georgios

2016-03-30 11:49

reporter   ~0009897

Hi,

Regarding the SMTP Server, QMAIL is used through SME Server (https://wiki.contribs.org/Main_Page)

Please have a look on my sogo.conf:

[root@mail ~]# cat /etc/sogo/sogo.conf

{
OCSFolderInfoURL = "mysql://sogo:XXXXXXXXXXXX@localhost/sogo/sogo_folder_info";
OCSSessionsFolderURL = "mysql://sogo:XXXXXXXXXXXX@localhost/sogo/sogo_sessions_folder";
SOGoProfileURL = "mysql://sogo:XXXXXXXXXXXX@localhost/sogo/sogo_user_profile";
OCSEMailAlarmsFolderURL = "mysql://sogo:XXXXXXXXXXXX@localhost/sogo/sogo_alarms_folder";

    SOGoACLsSendEMailNotifications = NO;
    SOGoAppointmentSendEMailNotifications = YES;
    SOGoAppointmentSendEMailReceipts = YES;
    SOGoEnableEMailAlarms = no;
    SOGoAuthenticationMethod = LDAP;
    SOGoFoldersSendEMailNotifications = NO;

            SOGoMailSpoolPath = &quot;/var/spool/sogo&quot;;
    SOGoIMAPServer = &quot;imap://localhost:143&quot;;
    SOGoMailDomain = MYDOMAIN.COM;
    SOGoMailingMechanism = smtp;
    SOGoSMTPServer = localhost;
    SOGoMailListViewColumnsOrder = (
        Flagged, Attachment, Subject, From, Unread, Date, Size
    );
    SOGoTrashFolderName = Trash;
    SOGoDraftsFolderName = Drafts;
    SOGoSentFolderName = Sent;

    SOGoSuperUsernames = (
        admin
    );
    SOGoTimeZone = Europe/Athens;
    WOWorkersCount = 3;

    SOGoMailAuxiliaryUserAccountsEnabled = NO;
    SOGoEnablePublicAccess = NO;

    SOGoMailCustomFromEnabled = YES;

    SOGoRefreshViewCheck = &quot;every_10_minutes&quot;;
    SOGoFirstDayOfWeek = &quot;1&quot;;
    SOGoFirstWeekOfYear = &quot;First4DayWeek&quot;;
    SOGoCalendarDefaultReminder = &quot;-PT15M&quot;;

    SOGoSieveServer = &quot;sieve://localhost:4190&quot;;
    SOGoVacationEnabled = YES;
    SOGoForwardEnabled = YES;
    SOGoSieveScriptsEnabled = YES;
    NGImap4ConnectionStringSeparator = &quot;.&quot;;

    SOGoUserSources = (

        {
            CNFieldName = cn;
            IDFieldName = uid;
            UIDFieldName = uid;
            baseDN = &quot;ou=Users,dc=MYDOMAIN,dc=COM&quot;;
            bindFields = (uid);
            canAuthenticate = YES;
            displayName = &quot;Users&quot;;
            hostname = localhost;
            id = users;
            isAddressBook = YES;
            port = 389;
            type = ldap;
        },
        {
            CNFieldName = cn;
            IDFieldName = cn;
            UIDFieldName = cn;
            baseDN = &quot;ou=Groups,dc=MYDOMAIN,dc=COM&quot;;
            bindFields = (cn);
            canAuthenticate = YES;
            displayName = &quot;Groups&quot;;
            hostname = localhost;
            id = groups;
            isAddressBook = YES;
            port = 389;
            type = ldap;
        }
    );

    NGUseUTF8AsURLEncoding = YES;
    WOMessageUseUTF8 = YES;
    WOParsersUseUTF8 = YES;
    WOPort = 127.0.0.1:20000;
    WOUseRelativeURLs = YES;

    SOGoMemcachedHost = 127.0.0.1;
Christian Mack

Christian Mack

2016-03-30 12:33

developer   ~0009902

   SOGoMailDomain = MYDOMAIN.COM;
   SOGoMailingMechanism = smtp;
   SOGoSMTPServer = localhost;

Those settings state you use the local SMTP server without going via any script.

I do not know qmail, sorry.
You should check its configuration.
Something like "allowing email addresses without domain part".

georgios

georgios

2016-03-30 14:11

reporter   ~0009905

Thank you for your help.
I will inform you if I resolve it.

ludovic

ludovic

2016-06-23 18:25

administrator   ~0010427

Not related to SOGo.

georgios

georgios

2017-04-11 08:27

reporter   ~0011699

Finally I resolved it.

I was due to QMAIL which was returning "null sender" from the auto-reply message.

https://bugs.contribs.org/show_bug.cgi?id=9883

I resolved it with updating QMAIL package.

thanks,
G.

Issue History

Date Modified Username Field Change
2016-01-12 14:06 georgios New Issue
2016-03-03 13:49 georgios Note Added: 0009628
2016-03-04 11:00 Christian Mack Note Added: 0009634
2016-03-29 06:47 georgios Note Added: 0009866
2016-03-29 06:51 georgios Note Edited: 0009866
2016-03-30 09:42 Christian Mack Note Added: 0009890
2016-03-30 10:33 georgios Note Added: 0009892
2016-03-30 11:24 Christian Mack Note Added: 0009896
2016-03-30 11:49 georgios Note Added: 0009897
2016-03-30 12:33 Christian Mack Note Added: 0009902
2016-03-30 14:11 georgios Note Added: 0009905
2016-06-23 18:25 ludovic Note Added: 0010427
2016-06-23 18:25 ludovic Status new => closed
2016-06-23 18:25 ludovic Assigned To => ludovic
2016-06-23 18:25 ludovic Resolution open => suspended
2017-04-11 08:27 georgios Note Added: 0011699
2017-04-11 08:27 georgios Status closed => feedback
2017-04-11 08:27 georgios Resolution suspended => reopened
2017-04-11 10:40 francis Status feedback => closed
2017-04-11 10:40 francis Resolution reopened => suspended