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

  • SEARCH
  • Home
  • 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 8779391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:46:32+00:00 2026-06-13T19:46:32+00:00

Currently I have a mail server configured (a real one from my ISP) and

  • 0

Currently I have a mail server configured (a real one from my ISP) and mail internal and external works on the command line. In PHP only external users work.

For testing I would like to send to internal users only.

( Ideally I would like to set up lots of aliases that point to one user so mail to:
tom@localhost.com, dick@localhost.com, harry@localhost.com end up in /var/mail/johnsmith )

I’d be greatful if someone could help here. I’m hesitant to edit the postfix config files…

On the command line johnsmith@localhost works but not in PHP. It’s using cakePHP and I checked the value of $email-addr just before the send ($this->Email->send();) and the value is johnsmith@localhost. I’m not that familiar with cakePHP yet. The var/log/mail shows nothing, only external email addresses.

(server is Suse linux)

  • 1 1 Answer
  • 0 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-06-13T19:46:33+00:00Added an answer on June 13, 2026 at 7:46 pm

    In /etc/postfix/main.cf add localhost.com:

    mydestination = $myhostname, localhost.$mydomain,localhost,localhost.com
    

    This allows sending on “localuser@localhost.com” via command line. I loaded up a test php mail form script in a browser and it works, sending mail through to /var/mail/localuser.

    At the moment it means I have to check each local users /var/mail file. I’m working on the alias. My first attempt at that failed.

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

Sidebar

Related Questions

We currently have a working php mail script, this works fine and as we
my PHP page currently doesnot have a mail server, instead of throwing an error,
I currently have a Linux, Apache, MySQL, PHP, Postfix web server that I setup
I am working on an IMAP client using java mail. We currently have a
I have a strange issue . I am currently working on a mail app
Currently have a drop down menu that is activated on a hover (from display:none
I currently have one project that currently contains multiple packages. These packages make up
I currently have a client website on the Grid server on MediaTemple that will
We are having issues with our mail server which have highlighted a weakness in
I'm setting up a mail server and I'm mysql for the passwords table. Currently

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.