Questions tagged [smtp-headers]

Email headers such as Received-By: are SMTP headers.

Filter by
Sorted by
Tagged with
4 votes
1 answer
382 views

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

The email virus filter wrapper for ClamAV, clamassassin, appends its headers to the message headers. X-Virus-Status: No X-Virus-Checker-Version: clamassassin 1.2.4 with clamscan / ClamAV 1.0.3/27134/...
Esa Jokinen's user avatar
  • 49.8k
0 votes
1 answer
177 views

Postfix smtp_header_checks does not prepend header, but ignores or warns

I am trying to add those headers to email sent via the postfix server: Precedence: bulk Auto-Submitted: auto-generated These are the configuration files and only header_checks adds the correct header....
Daniel L's user avatar
0 votes
1 answer
367 views

Postfix header_checks are ignored

I'm using Ubuntu 20.04. I installed Postfix (v3.4.13) with Dovecot (v2.3.7.2) a long time ago. Now, I want to overwrite the Message-Id header using header_checks. It's the first time I'm trying to use ...
Ugnius's user avatar
  • 1
0 votes
1 answer
235 views

How do I prevent postfix from adding this Reply-To header twice?

I am running a mail server with Postfix, and I have set this line in /etc/postfix/header_checks.pcre: /^To: [email protected]/ PREPEND Reply-To: [email protected] [email protected] is a forwarding ...
3x5's user avatar
  • 121
2 votes
2 answers
386 views

Exchange Transport Rule to block combination of recipients?

Is it possible to create an ETR that blocks certain combinations of recipients? Imagine I have two customers in different domains with similar email addresses. I want to prevent sending to recipient ...
bendodge's user avatar
  • 166
1 vote
0 answers
252 views

"smtp_header_checks" in postfix not including the header

I am trying to add AWS SES's X-SES-CONFIGURATION-SET header in my postfix. For this I am using smtp_header_checks as follows: My main.cf has the following line: smtp_header_checks = pcre:/etc/postfix/...
Fulliautomatix's user avatar
0 votes
1 answer
218 views

Mask mail server IP with Postfix header anonymization?

I'm attempting to setup header anonymization on my mail server, running Postfix and Dovecot on Debian. I've setup some regular expressions to prevent certain meta data, like a client’s IP address, ...
St4rb0y's user avatar
  • 59
1 vote
1 answer
278 views

Is it sensible to use postfix header_checks to block email where the From: header is missing any @domain portion?

We are running inbound mail services using postfix for a large number of domains and looking to reject more junk email earlier in the path. We have already implemented the postconf setting ...
CrayFishUK's user avatar
0 votes
0 answers
240 views

Postfix sending from root@server even when From: specified in header, mail not being delivered

I'm writing a bash script that will email an alert when various system resources are used beyond a certain threshold. I've set the script to make the first line of the email body "From: ALERTS ...
1337ingDisorder's user avatar
0 votes
0 answers
108 views

How can I understand if my MX is changing the message envelope?

I have an exim4 server that forwards all input emails to a gmail account. Gmail is refusing some valid messages with this error: SMTP error from remote mail server after end of data: 550-5.7.1 Our ...
Tobia's user avatar
  • 1,322
0 votes
1 answer
288 views

Postfix header_checks add X-Mailgun-Tag

I am trying to add in the postfix header_checks, using PREPEND, some X-Mailgun-Tag headers. When using the following expressions in the header_checks, it applies without issues to all domain emails. /^...
Nikos Klavdianos's user avatar
1 vote
1 answer
504 views

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

I am trying to figure out whether an email header contains the IP address of the host who sent the email. The header is supposed to have a number of received: fields, which list that one mail server ...
Effie's user avatar
  • 154
0 votes
1 answer
226 views

Mail Enable email headers when sending emails via ASP.NET

I have multiple websites running on my server: domain1.com and domain2.com The problem is now that when I sent an email via ASP.NET from domain2.com, that in this email source I see (notice domain1): ...
Adam's user avatar
  • 287
1 vote
1 answer
1k views

Make Postfix add "Authentication-Results" header to locally originated mail destined to local domain?

If I write via sendmail or SubmissionS client a mail to my virtual account (my domain is example.org), the mail I receive looks like this: Return-Path: <[email protected]> Delivered-To: user@...
Polizi8's user avatar
  • 125
0 votes
2 answers
1k views

Postfix does not add to: header for outgoing mail

I have configured a basic Postfix setup to send mail using an external smtp relayhost, and resolving locally address mail via /etc/aliases. Sending email works (via the sendmail command) However, when ...
Rabarberski's user avatar
2 votes
2 answers
270 views

Handling badly folded long Return-Path header gracefully

I've got a problem with my POP3 provider delivering me e-mails with broken Return-Path header. When it's long, it gets wrongly folded into multiple lines, in the middle of e-mail address like this: ...
Maciej Łoziński's user avatar
0 votes
0 answers
1k views

Change From (Sender) address using Postfix as a relay and pass validation

I'm trying to relay mail via Postfix and change the sender address whilst also passing DKIM/DMARC validation. So if I send an email from [email protected] via the Postfix relay (using it as a smart ...
cloudtester's user avatar
0 votes
1 answer
194 views

SMTP Delivery Failure Headers

hoping someone could help me out. I'm sending out SMTP email with a custom header, e.g x-commId and for a successful email, this header is shown in the received message header (Which is not when I ...
Zintah's user avatar
  • 11
3 votes
1 answer
452 views

Remove unnecessary quotes from sender display name with special characters

I have set up Postfix with Dovecot and SquirrelMail on an Ubunutu 18.04 machine. Everything is working great, except for the display name with special characters. In SquirrelMail, I have configured ...
Snackoverflow's user avatar
1 vote
1 answer
1k views

Blank line in email headers causes Postfix to skip remaining lines

I have a daily email that comes in to one user in which the headers of the email contain a blank line. This is causing mail clients/webmail to display "Invalid address" "Unknown date" and no subject. ...
nbucko's user avatar
  • 21
0 votes
2 answers
288 views

Transport Rule After Hours Pattern

I am trying to create a Transport rule to automatically add the shared email address when received after hours (8am-5pm). The current idea is to use the "when the message header matches text patterns"...
Nato's user avatar
  • 101
5 votes
2 answers
11k views

How to modify Receive header in Postfix

Each Mail Transport Agent that encounters a message adds a Receive header to indicate where, when, and how the message arrived and also some data about the receiver. When I send an email from Mac Mail....
potato's user avatar
  • 159
2 votes
2 answers
2k views

SpamAssassin, Postfix, and Multiple Addresses in From Header

I'm working on a problem that I'm seeing with an email scanning server (MailScanner, Spamassassin, Postfix, etc.), and From header spoofing. Unfortunately, some of the versions of these components ...
rickyboone's user avatar
2 votes
2 answers
7k views

Sendmail From address

Any help would be greatly appreciated. I'm trying to use sendmail to send a message with a custom "from" e-mail address. The body of the message is a file, pasted below. What I'm seeing is that ...
Dan P's user avatar
  • 31
0 votes
2 answers
2k views

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

Disclaimer: I have read some of the questions and articles here and elsewhere which deal with Sendmail rewriting headers. I haven't found an answer to the question below because the other question ...
Binarus's user avatar
  • 588
1 vote
1 answer
3k views

How to block SendGrid spam with sendmail?

Sendgrid and MailChimp are the two biggest sources of spam captured in my spam-folder. I'd like to block them before they get there. Fortunately, in an effort to appear "legitimate" the spammers ...
Mikhail T.'s user avatar
  • 2,377
0 votes
1 answer
1k views

Postfix: SMTP relay authentication for FROM local addresses only

I have Postfix SMTP configured to require authentication for relaying mail to outside world. When an outside SMTP server want to deliver mail to my domain (destination: [email protected]), ...
vzr's user avatar
  • 1
0 votes
2 answers
297 views

Show Public IP address when sending via Postfix via Postmarkapp

We have a security system set up where the first time a sold computer is booted up we get an e-mail from it's destination to show its been received. The police recommend we do this after a number of ...
Danny Shepherd's user avatar
1 vote
1 answer
3k views

Postfix - proper header settings

I'd like to ask you about setting up a proper header using to sending emails from my server which is running on Ubuntu 14.04 and Postfix is installed. All the emails sent from my server are marked as ...
BociucH's user avatar
  • 327
0 votes
1 answer
733 views

Does Email Header record / include the IP address of the Receiver?

In an email header, it seems only the IP addresses of the email sender and also the relaying servers are logged, as it travels to its destination. However, I need to also find the destination IP ...
lieiti's user avatar
  • 3
0 votes
1 answer
1k views

exim4 sends wrong Mail From header

When I send an email via my smtp exim4 server, I get this error: The sender address blah@[email protected] is not\n553 5.1.2 a valid RFC-5321 address. Logins to the server are with full email ...
J. Martin's user avatar
  • 101
1 vote
1 answer
4k views

Postfix "header_checks" is insane for me to accomplish [duplicate]

I'm trying to REJECT an email with a certain phrase in the SUBJECT (e.g. "quota limit") using Postix 2.9.6. Following the postfix's documentation I realized postfix handles this info by checking the ...
Ophion's user avatar
  • 35
2 votes
1 answer
1k views

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

When I send an e-mail in console, like: echo "Body of the message" | mail -s "Some clever subject" [email protected] I would like to check the headers of the e-mail once it is sent. They do not ...
zezollo's user avatar
  • 470
0 votes
1 answer
654 views

To-Recipient Required in Email?

I would like to know if a "To"-Recipient is required in an e-mail per definition or if all recipients could be Bcc or Cc. RFC5322 states The only required header fields are the origination date ...
LeRookie's user avatar
  • 103
2 votes
1 answer
5k views

dkim verification keeps failing bad signature

My DKIM verification keeps failing, and I can't figure out why. It's signed though, but wrong. When I check domain and selector it turns out as valid, so problem is with signing. Here is a dump of ...
Aleksandar Pavić's user avatar
2 votes
2 answers
101 views

why can the Sender field not be easily configured?

To clarify this and this explanation for Sender:: In brief, From: in the message indicates the mailbox of whoever wrote the message, Sender: indicates the entity which sent a message on behalf ...
Thufir's user avatar
  • 229
0 votes
2 answers
3k views

Why does my server hostname appear in SMTP email headers sent from another domain?

I have seen some similar questions here however i am still to find a proper fix to this issue. The issues are as follow: I am trying to send emails from this [email protected] email address I ...
Gabriela Smith's user avatar
1 vote
1 answer
1k views

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

The mail header "from" domain of any mail sent to our company's server is replaced by server's domain. For example: [email protected] send an email to our server(company.com). We see the sender of ...
xysmlx's user avatar
  • 13
2 votes
1 answer
605 views

Can sendmail reject mail with nonexistent From-Header?

I have a sendmail/cyrus installation. Sendmail rejects mails from non existent MAIL FROM:-addresses. This is good. But sendmail does not reject mails from non-existent From:-header-addresses. The mail ...
Teddy's user avatar
  • 195
2 votes
1 answer
1k views

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

I've had a problem recently with spam coming in with an envelope-from consisting of my own address. At first I thought this meant that my password had been compromised, mistakenly thinking that the "...
sootsnoot's user avatar
  • 425
1 vote
0 answers
214 views

"Dynamic" HELO with sendmail: Possible?

Suppose there is an instance of Sendmail 8.14.4 which handles incoming and outgoing email messages for domains a.com and b.com. Now, what I'd like to achieve is the following: If Sendmail sends a ...
Binarus's user avatar
  • 588
12 votes
1 answer
7k views

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

Whenever my domain sends a message to a google group on another domain the DMARC alignment fails. This is true for all my approved senders, even using Gmail in my domain. It seems to be because the ...
lordbyron's user avatar
  • 371
1 vote
2 answers
5k views

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

Please help me re-frame question for positive use if needed, thank you I use two domains mail.hpdist.com and mail.hpsteaks.com. I am a little unsure how to properly walk through the testing as it ...
Seth's user avatar
  • 334
1 vote
2 answers
2k views

Number of issues with postfix, DKIM, and mail getting rejected or bulked

I'm having a number of issues with Postfix and mail sent being rejected or put in the spam/junk folder. I am trying to send emails on behalf of a number of my customers. I've got a postfix server set ...
Jacob R's user avatar
  • 111
2 votes
1 answer
4k views

Minimal Exim router which simply adds custom header

I answered this question with my current solution, but as I said I'm not 100% happy with it. That solution to the question 'How to add a custom header to all outgoing mail' involved adding the ...
dsl101's user avatar
  • 433
2 votes
0 answers
157 views

Microsoft Exchange: add **for foouser** to received-line

Some mail servers tell me the envelope recipient in the Received header. In this example the third headers shows [email protected]. Received: from mail.example.com (..) by visexchange01.vooconto....
guettli's user avatar
  • 3,843
2 votes
1 answer
3k views

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

I have been using rackspace email service, and I am finding that rogue emails are seemingly coming from [email protected] to [email protected] but were never actually sent by that user. As per ...
morleyc's user avatar
  • 1,150
1 vote
1 answer
1k views

Filter emails based on missing header in Postfix

How do I reliably enforce a policy of certain header being present in all messages in Postfix? For example, To: header. I've read about header_checks and used them previously to filter messages ...
sanmai's user avatar
  • 541
0 votes
1 answer
963 views

exchange 2013 content-type header

I am creating Transport Rules to create company-wide signatures. One of the quirks that I noticed was that, while everything looks great for HTML mail, anything sent in plain-text includes a bit of ...
ltwally's user avatar
  • 325
2 votes
2 answers
5k views

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

I've had several problems with SMTP emails from my server and domain sent using Exim being blocked by certain other domains, which may have been partly due to certain server settings tripping up ...
user56reinstatemonica8's user avatar