Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3354954
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T02:20:12+00:00 2026-05-18T02:20:12+00:00

I’ve recently setup my Ubuntu web server with exim4 so my PHP website applications

  • 0

I’ve recently setup my Ubuntu web server with exim4 so my PHP website applications can send email such as “thank you” and “confirmation” notices.

I’ve got it setup and working such that I can send email to gmail, Yahoo! and my work address. However, my work email gets caught up in our spam filter. I’m new to setting up mail servers so I’m not sure what I might need to look for in making this mail server more trusted, while keeping is secure.

Here are some details:

  • Server is NATed behind a firewall.
  • Firewall has port 25 open for outgoing SMTP traffic (from server to anywhere).
  • Server is virtual hosting a couple different of our websites
  • The server is running the following exim4 config:

dc_eximconfig_configtype=’internet’
dc_other_hostnames=’web-serv.example1.com;example2.com’
dc_local_interfacees=’127.0.0.1′
dc_readhost=”
dc_relay_domains=”
dc_minimaldns=’false’
dc_relay_nets=” dc_smarthost=”
CFILEMODE=’644′
dc_use_split_config=’false’

Questions:

Do I need to open port 25 to incoming SMTP mail (anywhere to server)? I wonder if other mail servers need to talk to my mail server to verify itself, in a sort of handshake attempt.

I have not created any MX records primarily because the server has different websites on it the mail server should send mail for all the websites. Do I need to pick/create a domain address and create MX records for it?

One thing of note is that the mail headers look like this:

Return-Path: <www-data@example2.com>  
Received: from web-serv.example1.com ([Firewall public IP Address])  
Received-SPF: neutral (google.com: [Firewall public IP Address] is neither permitted nor denied by best guess record for domain of www-data@example2.com)

“web-serv” is the host name of the server, such that you get this if you type it into the command line:

$ hostname  
web-serv

and “www-data” is the account name for the Apache2 server that Ubuntu gave it as default.

Any other general advice would be appreciated. It’s all new to me.

Cheers!

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T02:20:12+00:00Added an answer on May 18, 2026 at 2:20 am

    One item of note, since I posted this question time time ago (almost 10 months) is that I found out the biggest issue I had was with setting up the DNS for reverse DNS on our hosting providers side of things.

    In other words, our hosting provider (the people who give us our IP address and manage our hardware) had to enter a record to match my server(s) hostname to whatever IP address it used.

    There’s a specific name for this. I believe it’s a “PTR” record but the name escapes me at the moment, but you basically tell them “my server hostname is …” and they do a quick update to the DNS for reverse DNS purposes.

    When I asked this question, we had a different hosting provider who didn’t really help explain this to me, and after switching providers, I got to talk to someone who was happy to help me understand that side of the equation.

    And as I understand it, this is setup by the people who assign you the IP addresses. But there’s probably more to it than that.

    Once I got that setup properly, email had no problem getting through the spam filters and Gmail/Yahoo showed SPF as “passed”. It was showing neutral before.

    Our company email was set to drop any email that would not resolve reverse DNS, which is why I could not even receive the email or find it in the spam filter. Of course, that situation would be dependent on the company and what email policy and software they’re using to manage spam. Some might just drop all email that does not reverse DNS and some might dump it in to spam filters instead.

    Hope that might help some people with similar issues.

    Cheers!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.