LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-23-2023, 09:31 AM   #1
BaseBallBatty
LQ Newbie
 
Registered: Nov 2023
Posts: 1

Rep: Reputation: 0
EXIM: to Accept mail from single non existing domain


Hello

I am running my own mail server without any issue, apart from one.
My employer is sending my payslip from a non existing domain


So I can reproduce this with a telnet test (in bold is what I sent to the smtp port of my mailserver)
Code:
Trying 1.2.3.4 ...
Connected to smtp.mymaildomain.com
Escape character is '^]'.
220 smtp.mymaildomain.com ESMTP Exim 4.96.2-12-g29d01ae2a Thu, 23 Nov 2023 15:30:20 +0100
EHLO nonexistingsubdomain.existingdomain.com
250-smtp.mymaildomain.com Hello myown.hostname.com [4.3.2.1]
250-SIZE 52428800
250-8BITMIME
250-PIPELINING
250-PIPECONNECT
250-AUTH PLAIN LOGIN
250-STARTTLS
250 HELP
MAIL FROM:<payroll@nonexistingsubdomain.existingdomain.com>
250 OK
RCPT TO:<my@mmymaildomain.com.com>
550-Verification failed for <payroll@nonexistingsubdomain.existingdomain.com>
550-Unrouteable address
550 Sender verify failed
Terminated
and obviously in my eximlog I see:
Code:
2023-11-23 15:30:20 H=myown.hostname.com [1.2.3.4] sender verify fail for <payroll@nonexistingsubdomain.existingdomain.com>: Unrouteable address
2023-11-23 15:30:20 H=myown.hostname.com [1.2.3.4] X=TLS1.3:TLS_AES_256_GCM_SHA384:256 CV=no F=<payroll@nonexistingsubdomain.existingdomain.com> rejected RCPT <my@mymaildomain.com>: Sender verify failed
2023-11-23 15:30:20 H=myown.hostname.com [1.2.3.4] incomplete transaction (QUIT) from <payroll@nonexistingsubdomain.existingdomain.com>
so it fails for good reasons, cause nonexistingsubdomain.existingdomain.com is indeed a nonexisting subdomain

I cannot get my employer to change the hostname or create a dns record... I tried and failed, the simply won't listen and follow best practise

I really only need to accept that mails from payroll@nonexistingsubdomain.existingdomain.com are being bypassed from this check
How would I whitelist that and exempt that from any testing?

I already tried creating a /etc/hosts entry and I also added the hostname to the installed dns server, didn't do a damn thing

any help would be welcome
 
Old 11-23-2023, 11:03 PM   #2
RandomTroll
Senior Member
 
Registered: Mar 2010
Distribution: Slackware
Posts: 1,973

Rep: Reputation: 271Reputation: 271Reputation: 271
I don't use exim, but I can allow access from invalid domains with sendmail.
 
Old 11-24-2023, 09:05 AM   #3
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 448Reputation: 448Reputation: 448Reputation: 448Reputation: 448
Hi

You could put the domain name - nonexistingsubdomain.existingdomain.com in /etc/hosts - for example

127.0.0.1 nonexistingsubdomain.existingdomain.com

That way, the DNS check will pass.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I configure exim to accept mail on a server without an MX DNS record? RandomTroll Linux - Software 7 11-23-2021 01:58 PM
Postfix - single virtual domain and relay, need to add second non-virtual domain Tech33 Linux - Server 7 07-30-2013 10:09 PM
Etch + exim4 + sa-exim: sa-exim is not loading Thalagyrt Debian 0 04-18-2007 10:12 AM
exim is failed !!! error:package exim is not installed apache Linux - Software 0 06-24-2004 05:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration