Community Forums
Connect with us on LinkedIn
Closed Thread
Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Apr 2005
    Posts
    1

    Unhappy Sendmail & FormMail issue

    After searching through the forums, I haven't yet found an answer. I have a client with a website that uses a FormMail (http://www.scriptarchive.com/readme/formmail.html) mail script and form. I currently host the clients website only; their email is hosted by a different company on a different box. The client is currently unable to receive mail from the FormMail script.

    For the purposes of understanding this message, here are a few global variables for you:

    my client's domain name: company.com
    client that needs to receive messages from FormMail: recipient@company.com
    my client's cPanel login: cpanelusername


    After digging into the problem, I have found that FormMail uses sendmail to send out its messages from the form. Unfortunately it appears that sendmail is only able to send mail to local users, and the client's mail users are located on a different machine. In other words, the company's site is located on my machine at www.company.com. The companies mail user, recipient@company.com is unable to receive messages from FormMail because the user is located on a different box.

    Since there are no email users set up on my server, all of the messages sent by the script are being delivered to the default domain address, cpanelusername@company.com. So, I thought I would simply change the default email address to recipient@company.com. This is not allowed as the user "recipient" does not exist on my machine.

    Any and all help would be appreciated as I am stumped!

  2. #2
    Member KMK Enterprises's Avatar
    Join Date
    Feb 2005
    Posts
    53

    Default

    Set up a forward.

    Set the formmail application to email to an alias account on your client's account on your server: whatever@company.com and create a forward in cPanel to forward all mail sent to that email address to your client's email account on the other server. Be sure to test the forward first to be sure it's working.

  3. #3
    Member Trigger's Avatar
    Join Date
    May 2003
    Location
    Brisbane
    Posts
    87

    Default

    To get the emails to be delivered remotely you will need to have the domain name removed from /etc/localdomains and entered in /etc/remotedomains that way when exim goes looking for the mailbox to deliver to it will lookup the MX record for the domain externally and deliver it to their external mail server. Default is to deliver locally to all domains in /etc/localdomains

    After you do that DO NOT click on the fix mailboxes link under the Email options in WHM or it will write it back into /etc/localdomains.

  4. #4
    Registered User
    Join Date
    Oct 2006
    Posts
    1

    Smile sendmail -t

    Run sendmail -t

  5. #5
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Please don't dig up old threads.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

Similar Threads & Tags
Similar threads

  1. sendmail formmail problem
    By tkporce; in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-01-2008, 11:51 PM
  2. Formmail issue
    By oulzac in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-30-2007, 04:40 PM
  3. Sendmail issue?
    By Scott Greczkows in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 06-24-2006, 05:04 PM
  4. Replies: 6
    Last Post: 07-20-2005, 03:28 AM
  5. formmail.pl & attachments
    By odmtech in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 03-07-2005, 12:37 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube