[CWB] [External Sender] Re: CQPweb mail "From" address now wrong, makes mail bounce

Hardie, Andrew a.hardie at lancaster.ac.uk
Sat Oct 26 13:03:36 CEST 2019


I’m afraid I can’t reproduce this issue – either with account verification mails, or username reminder mails. Both use the correct value from config for the “from” address. on my server.

The relevant config item is $cqpweb_email_from_address.

The code path involves 2 functions: send_user_verification_email() (useracct-lib.php line 401) and  send_cqpweb_email() (general-lib.php line 908). SO far as I can see or recall, the relevant code hasn’t changed since I branched off 3.2.

Sorry to be of such minimal help…

best

Andrew.


From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Scott Sadowsky
Sent: 23 October 2019 18:22
To: Open source development of the Corpus WorkBench <CWB at liste.sslmit.unibo.it>
Subject: [External Sender] Re: [CWB] CQPweb mail "From" address now wrong, makes mail bounce


This email originated from outside of the University. Do not click links or open attachments unless you recognise the sender and know the content is safe.
An addendum to my previous message: I can successfully send e-mails from the same server with this command:

echo -e "Hi! This is a test!" | mail -s "Test mail" -a "From: administrator at my.address.com<mailto:administrator at my.address.com>" "destination-address at gmail.com<mailto:destination-address at gmail.com>"

Cheers,
Scott

Hi all, I've been successfully sending out confirmation mails from CQPweb for quite
a while, but now they're bouncing. The problem is the sender address, as
seen in /var/log/mail.log: Oct 22 17:21:52 localhost postfix/smtp[24436]:

REDACTED: to=<destination-address at gmail.com<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&data=02%7C01%7Ca.hardie%40lancaster.ac.uk%7C5f9565e6965042872d8908d757dda646%7C9c9bcd11977a4e9ca9a0bc734090164a%7C1%7C0%7C637074481819454504&sdata=7m%2FbNmf1KM7oFwKhZ2EQVpPsC9lEeZTBnriPWeMfuR0%3D&reserved=0>>, relay=gmail-smtp-in.l.google.com<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgmail-smtp-in.l.google.com&data=02%7C01%7Ca.hardie%40lancaster.ac.uk%7C5f9565e6965042872d8908d757dda646%7C9c9bcd11977a4e9ca9a0bc734090164a%7C1%7C0%7C637074481819454504&sdata=M63lWFh2VRpr9xdIQxTYjCeCxFrNDDapfTE5NQBDhgY%3D&reserved=0>[REDACTED]:25, delay=0.31, delays=0.01/0.01/0.28/0.01, dsn=5.1.2, status=bounced (host gmail-smtp-in.l.google.com<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fgmail-smtp-in.l.google.com&data=02%7C01%7Ca.hardie%40lancaster.ac.uk%7C5f9565e6965042872d8908d757dda646%7C9c9bcd11977a4e9ca9a0bc734090164a%7C1%7C0%7C637074481819454504&sdata=M63lWFh2VRpr9xdIQxTYjCeCxFrNDDapfTE5NQBDhgY%3D&reserved=0>[REDACTED] said: 553-5.1.2 *The sender address <www-data at localhost<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&data=02%7C01%7Ca.hardie%40lancaster.ac.uk%7C5f9565e6965042872d8908d757dda646%7C9c9bcd11977a4e9ca9a0bc734090164a%7C1%7C0%7C637074481819464462&sdata=6%2BijSShtoccafFVSi3E2S2CFi8AuTBLdrUM%2FwIS4Th4%3D&reserved=0>> is not a valid RFC-5321 553 5.1.2 address*.

For whatever reason, CQPweb (build 1365) is now *not* using the address set
in lib/config.inc.php. The relevant lines (I include both possibilities
that I can see) are:

$cqpweb_email_from_address = "administrator at my.address.com<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&data=02%7C01%7Ca.hardie%40lancaster.ac.uk%7C5f9565e6965042872d8908d757dda646%7C9c9bcd11977a4e9ca9a0bc734090164a%7C1%7C0%7C637074481819464462&sdata=6%2BijSShtoccafFVSi3E2S2CFi8AuTBLdrUM%2FwIS4Th4%3D&reserved=0>";
$server_admin_email_address = "administrator at my.address.com<https://eur02.safelinks.protection.outlook.com/?url=http%3A%2F%2Fliste.sslmit.unibo.it%2Fmailman%2Flistinfo%2Fcwb&data=02%7C01%7Ca.hardie%40lancaster.ac.uk%7C5f9565e6965042872d8908d757dda646%7C9c9bcd11977a4e9ca9a0bc734090164a%7C1%7C0%7C637074481819474417&sdata=HclwU1MaW%2BTFg9hLBIiXyxf1qIa1TraySNt7frysqX8%3D&reserved=0>";

Rather, it's cobbling together a sender address from the server user it's
running under (www-data) and the local hostname of my server (localhost). How can this be dealt with? Best!
Scott
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://liste.sslmit.unibo.it/pipermail/cwb/attachments/20191026/ac02af11/attachment-0001.html>


More information about the CWB mailing list