Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd, 2017 please sign up again. Thanks!

Sendmail on a Virtualhost

Discussion in 'Mail Server' started by Gollunk, Aug 6, 2018.

  1. Gollunk

    Gollunk New Member

    Joined:
    Aug 6, 2018
    Messages:
    4
    Likes Received:
    1
    Hello everybody,

    I have a website on "mydomain.com" (not made by me) and i just made another one on a virtualhost "vh.mydomain.com". Sending mails from mydomain.com work fine but does'nt work from the virtualhost. I just want to use the same mail server for the 2 websites.

    I don't get any logs from PHP, so i think that the problem come from the mail server configuration and i don't know where to find a log from apache about mailing.

    The mail server is Sendmail.

    Thank you in advance.


     
  2. Rob

    Rob Administrator
    Staff Member

    Joined:
    Oct 27, 2011
    Messages:
    277
    Likes Received:
    754
    Look in the mail logs in /var/log/mail* .. should be a good starting point.

    Rob
     
  3. Gollunk

    Gollunk New Member

    Joined:
    Aug 6, 2018
    Messages:
    4
    Likes Received:
    1
    Hello Rob, thank you for your reply. I did look in those files yet and nothing appears.
     
  4. Gollunk

    Gollunk New Member

    Joined:
    Aug 6, 2018
    Messages:
    4
    Likes Received:
    1
    Anyone ?
     
  5. atanere

    atanere Moderator
    Gold Supporter

    Joined:
    Apr 6, 2017
    Messages:
    1,700
    Likes Received:
    1,795
    Hello @Gollunk, and welcome! I'm afraid I am no help at this level, so I apologize for that. Perhaps @Rob will have some other ideas or maybe another user with mail server experience will come along soon. Not everyone checks in here everyday, so sometimes assistance is not immediate. Good luck!

    Cheers
     
  6. Gollunk

    Gollunk New Member

    Joined:
    Aug 6, 2018
    Messages:
    4
    Likes Received:
    1
    Hello Atanere, i'll be patient, thank you ;)
     
    atanere likes this.
  7. Rob

    Rob Administrator
    Staff Member

    Joined:
    Oct 27, 2011
    Messages:
    277
    Likes Received:
    754
    Yeah, I'd check from the bottom up. Check dns, make sure the mx records are set correctly, check the logs to see if they're getting through.. it's tough to troubleshoot without all the info.

    Start in /var/log/.. send an email from server 1, check those logs to see if it left, check logs in server 2 to see what it did with it
     

Share This Page