14 votes
Accepted

Why don't my domain's messages to a google group get their headers rewritten so DMARC can pass?

I did finally get this response from Google. I was glad to find someone who understood the issue, but unfortunately it looks like Google is sticking with their incorrect treatment of the DMARC ...
lordbyron's user avatar
  • 371
6 votes

How to modify Receive header in Postfix

Example header_checks: /^Received:.*with ESMTPSA/ IGNORE /^X-Originating-IP:/ IGNORE /^X-Mailer:/ IGNORE /^Mime-Version:/ IGNORE /^User-Agent:/ ...
Sven's user avatar
  • 99.6k
4 votes
Accepted

Why doesn't the "Received: ...by" email header show the port?

The port number would not be useful in a Received: line, as there are standard ports for email transport, and using alternate ports is not really possible. If you want to know if a message was ...
Michael Hampton's user avatar
4 votes

Forwarding email with postfix via AWS SES

following this step its working for me able to fordward the email from inside the server to customer -> sender_canonical_maps = regexp:/etc/postfix/sender_canonical sender_canonical_classes = ...
luckyman's user avatar
4 votes
Accepted

Why do email headers show the wrong IP address from my Exchange server?

Received: from mail.hpsteaks.com (66.49.60.114.nw.nuvox.net. [66.49.60.114]) - Isn't a reverse lookup of the name mail.hpsteaks.com. The ip address 66.49.60.114 is the ip address that your email ...
joeqwerty's user avatar
  • 111k
4 votes
Accepted

How to make clamassassin prepend the X-Virus-* headers instead of appending them?

Reasons The clamassassin is an old shell script that was developed between 2003 and 2007 whereas RFC 5322 is more recent, dating back to 2008. Therefore, the author of clamassassin, James Lick, might ...
Esa Jokinen's user avatar
  • 49.8k
3 votes
Accepted

Check headers of a sent e-mail (by sendmail)

Copying messages to a Sent folder is normally done by the Mail User Agent. I am not aware of a switch to mail that would do this. However, you could add you userid to the list of addresses on the ...
BillThor's user avatar
  • 28k
3 votes

Why do email headers show the wrong IP address from my Exchange server?

joeqwerty is absolutely right, but I think this is a good opportunity to also point out another problem. No Received: from mail.hpsteaks.com (66.49.60.114.nw.nuvox.net. [66.49.60.114]) isn't a ...
user5870571's user avatar
  • 3,154
3 votes
Accepted

Checking SMTP headers for spoofed email (did client authenticate?)

Key line is here. Received: from [77.234.42.143] (port=65110 helo=[100.100.48.14]) by a2plcpnl0576.prod.iad2.secureserver.net with esmtpsa (TLSv1:DHE-RSA-AES256-SHA:256) (Exim 4.85_1) ...
sanmai's user avatar
  • 541
3 votes

Why does my server hostname appear in Exim email headers sent from a different domain?

It seems you are interested in the difference between these two Received headers. The top one: Received: from mail.my-domain.com (mail.my-domain.com. [MY.DOM.AIN.IP]) by mx.google.com with ...
HBruijn's user avatar
  • 80.3k
3 votes

postfix - different header checks for incoming and outgoing mail

If there is a mail header which you can use to identify which is incoming and which is outgoing mail, with postfix 3.2 or newer you can short-circuit the header_checks, like: /^Received: .*...
Matija Nalis's user avatar
  • 2,508
2 votes

Postfix: selecting relay host based on From: mail header rather than envelope sender

This worked for me with one change: the action "FILTER" needs to be added in the header_dependent_relay file: #/etc/postfix/header_dependent_relay /^From:.*specialsender1\@example\.com/ FILTER ...
Aurel's user avatar
  • 21
2 votes

Postfix: How to prepend a header only once?

Just for the record, because I stumbled over this rather old question (because I had a quite similar problem): There is an easy solution: put your check_sender_access directive into ...
andwei's user avatar
  • 21
2 votes
Accepted

mail header “from” domain is automatically replaced by server's domain, why?

Turn off the masquerading options: You can have your host masquerade as another using MASQUERADE_AS(`host.domain') This causes mail being sent to be labeled as coming from the indicated host....
Gerald Schneider's user avatar
2 votes

Sendmail From address

1/ Remove "From" and "Reply-To" lines from your template email 2/ cat template.email | sendmail -f "[email protected]"
Chaoxiang N's user avatar
  • 1,283
2 votes

Postfix - proper header settings

No, there isn't any additional secret "non-SPAM" headers that Postfix doesn't add by default. In this answer I explain the meaning of your suggested headers and the tests that have failed ...
Esa Jokinen's user avatar
  • 49.8k
2 votes

How to modify Receive header in Postfix

sudo nano /etc/postfix/main.cf header_checks = regexp:/etc/postfix/header_checks sudo nano /etc/postfix/header_checks /^Received:(.*?)with ESMTPSA(.*?)/ REPLACE Received: from example.com (...
dreamLo's user avatar
  • 121
2 votes
Accepted

Handling badly folded long Return-Path header gracefully

fetchmail: direct delivery mailbox/maildir using procmail/maildrop You can make fetchamil use procmail (or maildrop) to deliver messages directly to mailbox (mailbox file or maildir) without sending ...
AnFi's user avatar
  • 6,278
2 votes

Postfix does not add to: header for outgoing mail

You don't need any To: header for messages to be delivered to their destination. Only the SMTP envelope is used for that. Unlike the mailx tool the bare sendmail command is not a full mail client. The ...
Bob's user avatar
  • 6,003
2 votes
Accepted

what addresses are in the first "received:" entry in email header

Short answer is it depends. The headers are added by each server that handles the message along the chain and shows its own hostname/address, and who it got the message from. If a client simply uses ...
USD Matt's user avatar
  • 5,391
1 vote

Blank line in email headers causes Postfix to skip remaining lines

This is normal and cannot be adjusted. The headers are separated from the body by an empty line. Thus, everything after an empty line is treated as the body. From RFC 5322, 2.1: The header section is ...
Esa Jokinen's user avatar
  • 49.8k
1 vote
Accepted

SpamAssassin, Postfix, and Multiple Addresses in From Header

Currently I'm fighting this kind of spam, and to complement the great answer of Deeepdigger currently I have this rule in my Spamassassin. describe LOCAL_TWO_FROM_EMAILS The From has two emails, ...
Hojendiz's user avatar
1 vote

Postfix "header_checks" is insane for me to accomplish

The correct solution to my post lies here: -o receive_override_options=no_header_body_checks I just added the line -o receive_override_options=no_header_body_checks to my master.cf file without a ...
Ophion's user avatar
  • 35
1 vote
Accepted

How to make Sendmail add an evelope recipient(s) header to all inbound email messages?

Your question is addresses by Sendmail.org FAQ 3.29 3.29 How can I add a header specifying the actual recipient when having multiple users in a virtual domain go to a single mailbox? Short version:...
AnFi's user avatar
  • 6,278
1 vote

How to make Sendmail add an evelope recipient(s) header to all inbound email messages?

What you suggest would be against the SMTP protocol: there's legitimate reasons for adding addresses to RCPT TO command despite they do not exist in the To: or Cc: headers, i.e. RFC 5321 7.2. "...
Esa Jokinen's user avatar
  • 49.8k
1 vote

How to block SendGrid spam with sendmail?

For the record, I share similar opinions that MailChimp and SendGrid themselves aren't necessarily bad (although they certainly could have bad customers that they don't know about). Opinion aside, ...
Mike B's user avatar
  • 12k
1 vote

Postfix: SMTP relay authentication for FROM local addresses only

there are a number of restrictions you can add via smtpd_sender_restrictions reject_sender_login_mismatch Reject the request when $smtpd_sender_login_maps specifies an owner for the MAIL FROM ...
stefan0xC's user avatar
  • 226
1 vote

Show Public IP address when sending via Postfix via Postmarkapp

This is some of the cases where an own SMTP server would be ideal as you get to decide which information you would like to store. avoid any region detection simply by not deploying such (the default)....
Esa Jokinen's user avatar
  • 49.8k
1 vote
Accepted

To-Recipient Required in Email?

All recipients are described using the RCPT TO: SMTP verb; the fact that they are to be treated as "To", "Cc" or "Bcc" is only due to the message headers, which are part of the DATA portion of the ...
Massimo's user avatar
  • 71.3k
1 vote

why can the Sender field not be easily configured?

There is a number of technics used to avoid sender forging: Users except root can't assign arbitrary SENDER header, MTA override it anyway by actual username@domain. Submission from non-local domains ...
Kondybas's user avatar
  • 7,034

Only top scored, non community-wiki answers of a minimum length are eligible