Questions tagged [smtp-headers]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
46 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 user1@domainA.com via the Postfix relay (using it as a smart ...
0
votes
1answer
26 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 ...
0
votes
0answers
32 views

Rewriting e-mail headers (recipients) in Postfix (not header_checks) depending on complex logic

I have a mail system on Postfix+dovecot+amavisd+spamassassin+clamav. Now there is a task, an easy one, actually, but I still cannot find a solution. I need to change headers in emails according to ...
0
votes
0answers
54 views

How to rewrite the subject of a postfix virtual forward

I'm looking for a way to organize my incoming postfix mails, currently i've created a rewrite_headers for this but it doesn't work for the specific case. So mails to alias1@example.com are redirected ...
2
votes
0answers
90 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 ...
0
votes
1answer
44 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. ...
0
votes
0answers
447 views

How to add X-sender and X-receiver to message header with postfix header_checks?

How can I add 'X-sender' and 'X-Receiver' to incoming messages with postfix, if these headers are not already present in the arriving message? Similar to Microsoft Exchange header injection: For ...
0
votes
2answers
65 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"...
2
votes
1answer
1k 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....
1
vote
2answers
541 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 ...
0
votes
2answers
1k 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 ...
0
votes
2answers
766 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 ...
1
vote
1answer
2k 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 ...
0
votes
1answer
555 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: anything@mydomain.com), ...
0
votes
2answers
141 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 ...
1
vote
1answer
1k 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 ...
0
votes
1answer
384 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 ...
0
votes
1answer
613 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@usersdomain@myserver.net is not\n553 5.1.2 a valid RFC-5321 address. Logins to the server are with full email ...
0
votes
1answer
3k 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 ...
2
votes
1answer
652 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" my.address@myisp.com I would like to check the headers of the e-mail once it is sent. They do not ...
0
votes
1answer
107 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 ...
1
vote
1answer
3k 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 ...
2
votes
2answers
77 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 ...
-1
votes
2answers
1k 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@domain2.com email address I ...
1
vote
1answer
579 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: example@gmail.com send an email to our server(company.com). We see the sender of ...
2
votes
1answer
349 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 ...
2
votes
1answer
509 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 "...
1
vote
0answers
133 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 ...
7
votes
1answer
3k 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 ...
1
vote
2answers
4k 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 ...
1
vote
2answers
1k 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 ...
2
votes
1answer
2k 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 ...
2
votes
0answers
88 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 needle@vooconto.de. Received: from mail.example.com (..) by visexchange01.vooconto....
2
votes
1answer
2k 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 harry@mydomain.com to james@mydomain.com but were never actually sent by that user. As per ...
1
vote
1answer
824 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 ...
0
votes
1answer
530 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 ...
2
votes
2answers
3k 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 ...
5
votes
1answer
3k views

Why is sendmail adding an extra carriage return in headers?

I've got SendMail 8.14.4 running on a CentOS 5 server. A user in Japan is sending a message and when it gets processed by the server, SendMail is adding an extra carriage return for some reason. ...
1
vote
0answers
53 views

How can I dump email headers to plaintext files?

I have a .pst for which I would like to extract header information for all emails and dump it to one file per email. How would I go about doing this?
2
votes
2answers
926 views

Postfix header stating wrong IP

I am using Postfix 2.11.3 on Debian 8.0 I configured Postfix to run multiple instances (3), one for each public IP connected to our server in order to balance outgoing traffic depending on the ...
2
votes
1answer
46 views

Benign Email Headers

On our server, we have two separate email systems: if it's a long queue of recipients, then we store it in a queue to be sent in a cron. If it's less than X number of recipients, then it sends ...
1
vote
2answers
5k views

Forwarding email with postfix via AWS SES

I have a server with postfix MTA installed that accepts mail for my domain, hereinafter @example.com. I need to setup forwarding for certain emails@example.com to other emails . e.g. @gmail.com and ...
9
votes
2answers
4k views

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

I've successfully set Postfix to relay emails via Mandrill using SASL and sender_dependent_relayhost_maps with a MySQL table so that different senders connect to Mandrill using their own Mandrill ...
0
votes
1answer
3k views

postfix header_checks - regex spanning multiple lines

I would like to create a spam filter that spans multiple lines in headers. This is my /etc/postfix/header_checks file: /^From:.*name[0-9]+@.+[\r\n]+To:.*name@domain\.com/ REJECT It's a valid regex, ...
0
votes
1answer
1k views

Can't find received_header_text in exim.config file

I would like to modify received_header_text to add additional "Received: ..." header for authenticated mails - so gmail import will check SPF against our server, not client IP. But my exim.conf does ...
1
vote
1answer
3k views

Postfix: how to redirect a single email address depending on the sender

I'm trying to add a rule to Postfix. My goal is as follows: when anyone EXCEPT (server@example.com) sends an email to (info@example.com) forward it to (sales@example.com). If server@example.com is ...
-1
votes
1answer
72 views

email headers do not show normal ip

I am learning about mail servers, since the mail I send is not received by Hotmail. So I'm comparing mail headers from different sources to find out what could be my problem. I now have a very basic ...
1
vote
1answer
543 views

Where does e-mail header “Received: from…” come from? [closed]

I sent myself an e-mail from my server to my gmail account, here is one of the headers (partially redacted): Received: from cpvds3xx.xxx.com (dev1.xxx.com. [209.51.132.xxx]) by mx.google.com ...
5
votes
1answer
345 views

Is there a legitimate reason to use an encoded word in any header other than the subject?

Encoded words allow non-US-ASCII characters to be encoded as US-ASCII and thus placed into email headers. http://en.wikipedia.org/wiki/MIME#Encoded-Word Encoded words are often used in the Subject ...
5
votes
2answers
2k views

How to configure Postfix to only send out emails with a certain header?

I'm setting up a local development VM and I was able to redirect all sent out emails to a local mailbox using virtual_alias_maps with the entry /.*/ username. What I'd like to add is an option to not ...