[Solved ] Outbound quarantine mail released from no-replay@domain.tld

Questions and answers about how to do stuff
Post Reply
saeedahmad
Posts: 3
Joined: 17 May 2025 03:30

[Solved ] Outbound quarantine mail released from no-replay@domain.tld

Post by saeedahmad »

Hello,

I configured my eFa as both inbound and outbound mail scanner. Inbound is working well, It is delivering mails to clients mailbox via original sender mail address for both clean and manually released mails.

In the case of outbound mails. All clean mails are forwarding to outside mailboxs with the original sender's (my clients) mail address. But spam detected but valid mails, When I release them. It sends from no-replay@domain.tld instead of the sender's mail address.

How to solve the issue?


Thanks in advance.
Last edited by saeedahmad on 19 May 2025 03:57, edited 1 time in total.
saeedahmad
Posts: 3
Joined: 17 May 2025 03:30

Re: Outbound quarantine mail released from no-replay@domain.tld

Post by saeedahmad »

I want all outbound released mail should be delivered to targeted receipent via sender email address instead of no-replay@domain.tld
saeedahmad
Posts: 3
Joined: 17 May 2025 03:30

Re: Outbound quarantine mail released from no-replay@domain.tld

Post by saeedahmad »

May be this is not a problem. I misunderstood this. When I saw that the /var/log/maillog give output like

May 19 09:37:25 domain postfix/qmgr[289495]: 4b13KK2sgzz3kR73: from=<no-reply@domain.tld>, size=4535, nrcpt=2 (queue active)
May 19 09:37:25 domain postfix/smtp[692802]: connect to gmail-smtp-in.l.google.com[2404:6800:4003:c1c::1b]:25: Network is unreachable
May 19 09:37:25 domain postfix/smtp[692806]: 4b13KK2sgzz3kR73: to=<saeed@domain.tld>, relay=mail.domain.tld[<IP_address>]:25, delay=0.41, delays=0.05/0/0.12/0.24, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as C593E56951)


I thought the receiver will receive as no-reply. As I wasn't able to test, cause my sending mails were not blocking as spam. another thing confused me is " when I was selecting my address as alternative address in release panel then I was receiving from <apache>no-reply@domain.tld.

Whatever, thanks. But some configuration is checkable here ( My configuration, may vary for others )

PTR, SPF and DKIM should be recorded.


/etc/MailScanner/MailScanner.conf


Quarantine Whole Message = yes
Quarantine Whole Messages As Queue Files = no
Deliver Cleaned Messages = No



/var/www/html/mailscanner/conf.php

define('MAILWATCH_FROM_ADDR', 'no-reply@domain.tld');
define('MAILWATCH_HOSTURL', 'https://' . rtrim(gethostname()) . '/mailscanner');

define('QUARANTINE_USE_SENDMAIL', true);
define('QUARANTINE_SENDMAIL_PATH', '/usr/sbin/sendmail');
Post Reply