Questions tagged [exim]

Exim is a sendmail-compatible Mail Transfer Agent, licensed under the GPL, designed for Unix-like operating systems.

Filter by
Sorted by
Tagged with
15 votes
5 answers
36k views

When exim4 sends HELO/EHLO, how do I configure which host name it sends?

Mails from my system are being rejected when the receiving server does HELO checking. I believe my system is sending the wrong domain name. I'm running exim4. Googling for anything about exim4 and ...
user avatar
11 votes
3 answers
5k views

Failed SPF for email imported to Gmail because of client IP instead of server's in message when sent through SMTP from one local box to another

We have a linux (Debian) VPS with domain (let's say example.com with MX mail.example.com) that has SPF set up. There is dovecot+exim running. There is also Direct Admin on top of that. When I send a ...
Zbyszek's user avatar
  • 175
13 votes
3 answers
28k views

Setting up Exim to forward mail

I'm trying to setup Exim on a fresh CentOS install so that it will receive mail for a collection of given addresses, and forward the mail respectively to another address. For example, receiving mail ...
Joe Freeman's user avatar
3 votes
2 answers
11k views

Blocking outgoing mails to some users in exim

I want to block some users to sending out mails to other domains in Exim4. I tried the following configuration but did not work. Changes done in exim.conf file: In the main configuration section, ...
user210108's user avatar
27 votes
8 answers
54k views

How do I change Exim4's primary_hostname on a Debian box?

Some remote SMTP server I am trying to deliver mail to refuses to accept the HELO from my server: 504 5.5.2 <localhost>: Helo command rejected: need fully-qualified hostname Apparently, my ...
Jørn Schou-Rode's user avatar
27 votes
5 answers
37k views

What host name should the SSL certificate for an SMTP server contain?

I have a server foo.example.com at 192.0.2.1 It runs exim to receive e-mail for several of my domains. My domains each have an MX record pointing to mx.example.com, which resolves to 192.0.2.1 If I ...
David North's user avatar
10 votes
3 answers
43k views

Exim: Change sender address when sending mails out of local network

We have a working exim setup at a site, where users can send and receive mails. We are trying to setup a server to send some warnings and errors using email to an address that is outside the local ...
Esa Varemo's user avatar
8 votes
3 answers
14k views

Understanding exim configuration files on Debian/Ubuntu

I want to understand what's going on with this Exim configuration directory. In /etc/exim4, there's: * exim4.conf.template * update-exim4.conf.conf * conf.d The conf.d has a mess of directories and ...
bobobobo's user avatar
  • 798
7 votes
4 answers
4k views

Remove Exim version number

I'm trying to get rid of the version number that you see when you get an email sent from Exim. Received: from user1 by site.org with local (Exim 4.72) I'v tried editing smtp_banner in these two ...
Mint's user avatar
  • 506
5 votes
1 answer
3k views

How to choose a smarthost based on From: address in exim4 on Debian

I want to route emails with the From: .*@host1.com through smtp.server1.com and emails with the From: .*@host2.com through smtp.server2.com. For the moment, I have smarthost configured with dpkg-...
mikhailian's user avatar
5 votes
1 answer
9k views

Postfix Sender Verification 550

I have Postfix and Dovecot installed on a VPS, and configured to forward mail on to a Gmail address, and accept smtp requests from gmail so that it can send on that domains behalf. TLS and ...
Tom J Nowell's user avatar
4 votes
2 answers
31k views

How to get rid of "defer (-52): Retry time not yet reached" exim4 logs?

I have such a logs in mainlog of exim4. All I do with exim4 is learn only so all mails are fake. Now I try to manage theese logs that appear frequently: 2016-12-20 14:28:01 1cJ2UW-0006Yq-3m == root@...
trzczy's user avatar
  • 173
3 votes
1 answer
2k views

exim4 shared key permission on Debian

On Debian, the exim4 key file is supposed to be /etc/exim4/exim.key with permissions: chmod 640 exim.key chown root:Debian-exim exim.key If I have already a key file in /etc/ssl/private, owned by ...
473183469's user avatar
  • 1,380
2 votes
1 answer
6k views

EXIM: Relay to Office 365

I'm trying to configure exim to relay mails via an Office 365 account. I can find quite a few examples of doing this via postfix but almost none on exim. Is this at all possible? The idea is to have ...
miCRoSCoPiCeaRthLinG's user avatar
2 votes
1 answer
6k views

ive got dkim=neutral (bad version) header.i with gmail and dkim=fail (unknown key type) with yahoo

I'm having external ip and ubuntu server with exim4.71 and bind9. I'm trying to set valid dkim entry to send mail for gmail Here are my configuration files: bind9: _domainkey.example.com. IN ...
MealstroM's user avatar
  • 1,517
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
1 vote
1 answer
5k views

Exim: how to deliver locally and send a copy to another server

I need to configure exim to deliver messages to domain abc.com and send a copy to another server, which is also configured for abc.com. Something like that: [email protected] sends email to test@abc....
Fernando's user avatar
  • 1,229
1 vote
1 answer
2k views

how to prevent open relay with exim

I have setup exim as a relay server running on nonstandard port. But now spammers have abused it as a relay server for them. How do I prevent this from happening? Can I still have my server as a relay ...
Joshua Partogi's user avatar
1 vote
1 answer
7k views

How to have exim on server with multiple domains send each mail from its own domain, not the server hostname?

Suppose I have a VPS with multiple dedicated IP addresses and multiple domains: domain-a.com is on 11.11.11.11, mx is mail.domain-a.com domain-b.com is on 22.22.22.22, mx is mail.domain-b.com domain-...
user56reinstatemonica8's user avatar
1 vote
1 answer
102 views

Server infected by recent cryptojacking malware but different (?) entry point

One of my servers has been infected by this cryptojacking malware (reporting to the very same IP than in the article). It seems known for this malware to propagate through some Confluence ...
Skippy le Grand Gourou's user avatar
0 votes
1 answer
587 views

Sudden unidentified frozen emails with code injection-like recipient

I am suddenly receiving a number of curious "Message frozen" emails from my server (Exim 4.89, Debian stable) : Message 1hcbPR-0005t1-2r has been frozen (delivery error message). The sender ...
Skippy le Grand Gourou's user avatar
19 votes
9 answers
2k views

Gmail and Live are making all messages from my server as spam

I'm getting very weird results here. When my server sends an email to my @hotmail or @gmail account, it's marked as spam. When I send email through my server from Outlook to @hotmail, it doesn't get ...
Ryan Kearney's user avatar
13 votes
3 answers
7k views

How can i send /var/mail/root again?

Through some misconfiguration I've a lot of emails in /var/mail/root and /var/mail/www-data How can I "loop" over these files and send each mail another time?
Max's user avatar
  • 475
12 votes
3 answers
71k views

How to find which script on my server is sending spam emails? [duplicate]

My server is sending the spam email and I am not able to find out which script is sending them. The emails were all from nobody@myhost so disabled from the cpanel that nobody should not be allowed ...
user75380's user avatar
  • 137
8 votes
2 answers
4k views

Exim4 - temporarily freeze outgoing emails from specific user

I need to temporarily freeze outgoing emails from specific sender with exim4. The sender logs in with remote SMTP (i.e. over TCP/IP). What I want to do is to freeze (but not deny) all his emails so I ...
Viktor Stískala's user avatar
6 votes
2 answers
6k views

Exim TLS and Secure SMTP

I'm in the process of converting an existing mail server to support encrypted SMTP for our clients, but I've run into this brick wall with very little useful log data to help me forward. Everything ...
Richard Keller's user avatar
5 votes
6 answers
5k views

How might I stop BACKSCATTER using qmail?

I have a Linux box acting as Virtual Host for domain hosting. It runs CentOS and Parallels Plesk 9.x. Regardless of the following, the SPAM keeps flowing in at 1-3 / second. An explanation of the ...
alecb's user avatar
  • 53
5 votes
1 answer
8k views

Make Exim deliver local mail externally

We've got an unusual mail setup - Google Apps/Gmail in front, with Exim running on our webserver. Mail for any account that doesn't exist in Google Apps is forwarded to Exim. Both of these use the ...
Sudowned's user avatar
  • 288
5 votes
2 answers
16k views

exim4 is showing a TLS error on connection... (gnutls_handshake)

My exim server is showing the following error: TLS error on connection from xxxx.xxxx.xxxx. ([127.0.0.1]) [xxx.xxx.xxx.xxx] (gnutls_handshake): A TLS fatal alert has been received. I'm using the ...
John Mathew's user avatar
5 votes
2 answers
6k views

Exim authentication using Dovecot driver

Been following the instructions at the Dovecot Wiki for setting up Exim to share authentication credentials with Dovecot. I have setup Dovecot to deliver mails for virtual users and setup a router ...
DeaconDesperado's user avatar
4 votes
1 answer
915 views

Moving mail server to google apps

I just recently moved one of my Mail server (Exim+dovecot) to google apps thinking it would be a good idea. I am interested to hear what the serverfault community think about it, and mostly weight the ...
Adam Benayoun's user avatar
4 votes
1 answer
19k views

How to set exim4 to send email anywhere but only from authorised users?

Struggling to get my head around the various relaying controls in the exim4 config. I can send email from my server, I can send email from home and work (because I explicitly added suitable netblocks ...
Rob Cowell's user avatar
4 votes
1 answer
6k views

exim: Rewrite "From" header to envelope "FROM"

Cron sends emails with the "From" header always set to "From: [email protected] (Cron Daemon)" for all users, even though the envelope address (seen in the "Delivered-To" header in received email) is ...
Vladimir Panteleev's user avatar
4 votes
1 answer
563 views

Sign outgoing mails with DomainKey on exim4 and Ubuntu

I just installed Exim 4.73 on Ubuntu using apt-get. I was able to easily integrate DKIM signing because of it's integration with Exim. I'm having some trouble with DomainKeys support. Most of the ...
ensnare's user avatar
  • 2,232
4 votes
2 answers
8k views

Basic exim configuration - redirect all out-bound emails to local address

I have exim running on a development server. It's currently not able to deliver mail anywhere other than locally. This is fine though - I don't want to be able to accidentally spam our entire ...
aidan's user avatar
  • 615
3 votes
1 answer
1k views

Exim MTA shows dmz address and local domain name in outgoing message headers

We've recently added an Exim-based (MailCleaner) MTA in our DMZ that sends and receives email to and from our LAN email server. It works great, but I'm a little wary of one of the headers it places ...
nedm's user avatar
  • 5,660
3 votes
4 answers
8k views

Exim4 configuration to use several external ip for mail sending

i've got exim4 on ubuntu server and i-ve got a pool of 20 external IP's. Is that possible to configure exim4 to use this ip-s rotating to send mail? I think i could do this with iproute / iptables ...
MealstroM's user avatar
  • 1,517
3 votes
3 answers
6k views

Exim Smarthost Multiple domains and credentials Mailgun

I have a GCP instance running with whm/cpanel and mailgun setup using exim for multiple accounts using multiple domains. The current setup works for all domains however it only validates for the ...
user2059376's user avatar
3 votes
5 answers
566 views

Preferred mail system/server for a company?

Say you are responsible for setting up an email solution at a company. Which would be your choice? I know of the following options, but many of them not well: Gordano Mail System Exchange Exim ...
2 votes
1 answer
4k views

Who or what is sending spam from my server ( CentOS / Apache / suPHP )

My server is sending lots of spam and I searched for the problem for hours now. After googling I found a forum where they talked about this and mentioned to dig into the exim log, so I did and found ...
Tim Baas's user avatar
  • 281
2 votes
1 answer
2k views

How to setup exim to check the From field

We setup exim to use Amazon SES to route all your emails, but we found out that if we use an email forwader created by cPanel, Amazon doesn't properly route those emails because it's coming from a ...
Raisen's user avatar
  • 141
2 votes
1 answer
5k views

Remove exim local username

How can i remove the local username in the mail headers with exim4 running on debian 6? Received: from root by host.domain.com with local (Exim 4.72) (envelope-from <[email protected]>) id ...
Gustav's user avatar
  • 133
2 votes
1 answer
1k views

exim 4 : add header to ALL messages

I'm looking for a way to add headers to all outgoing emails in exim4 (debian 8 setup). I have tried differents things based on headers_add but i guess my main question is where to put this rule (the ...
webofmars's user avatar
  • 190
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
2 votes
4 answers
5k views

What's the best way to send bulk email?

I have been using the sendmail function in PHP with Exim 4 so far when I had to send my mailing lists, I would like to know if there is a clean solution for that. I'm quite sure that Facebook isn't ...
2 votes
2 answers
50k views

exim configuration: 503 AUTH command used when not advertised

I'm running a piece of software on a Windows server that sends email notifications via a remote SMTP server. It has very few configuration options, and only supports basic SMTP authentication without ...
jrdioko's user avatar
  • 577
2 votes
0 answers
395 views

Automatically split References header at 998 characters in Exim

Microsoft Windows Outlook has a bug whereby the References email header is allowed to grow up to 1012 characters before being split, in violation of the RFC SMTP line length limit. Postfix will ...
Rich Watts's user avatar
2 votes
2 answers
8k views

How can I use Exim4 to forward email for root to another email address?

I am trying to forward system email (from apt, cron, etc.) addressed to "root" to my personal email address using a smarthost. I am using Debian 9. First, I ran sudo dpkg-reconfigure exim4-config. ...
Jaap Joris Vens's user avatar
2 votes
1 answer
1k views

Remove IP and username from Exim mail headers

I have an Exim4 running on Debian which I use for transactional emails from my other servers protected by CloudFlare. Every transactional email sent from it has an IP address of the sender (1.2.3.4) ...
Alex M's user avatar
  • 21
2 votes
1 answer
805 views

Can I configure exim to deliver new mail to Maildir cur/ instead of new/?

I would like to set up an Exim4 delivery driver or perhaps a .forward/filter file that delivers certain mail straight to a MailDir's "cur" dir, instead of the "new" directory. Is this possible? ...
artfulrobot's user avatar
  • 3,129