UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  UK Web Hosting | Dedicated Server Windows and Linux VPS Forum > Technical Support > Linux Dedicated Servers

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-03-2008, 08:57
Pandacoder's Avatar
Junior Member
 
Join Date: Dec 2007
Posts: 16
Default Sendmail setup

Hi,

I have a Linux server with one main domain and some secondary domains.

Email for the main domain is handled by google apps and and the mx records all point to google correctly, and are working fine.

I use php on the server as part of the domain's application, to send out emails to a newsletter. This is fine.

I would like all the server emails such as crontab responses, notifications and errors to be sent to my google apps email address. I have set the correct email address in these modules.

It seems though, that Sendmail automatically picks up on the domain as being local and tries to deliver the emails locally.

I tried Procmail, I set a .procmailrc recipe in my home directory to forward all email to me, to my google apps address but it seems not to work.

Does anyone know of any good Sendmail/Procmail/Linux tutorials that would explain how to create this setup in particular?

I have found lots of tutorials but they assume that I have emails for the main domain handled locally which is where this case differs to most.

Any help appreciated.
__________________
$wisdom = array('knowledge', 'patience', 'experience', 'compassion', 'sympathy', 'humour', 'courage', 'tolerance', 'humility', 'Linux');
Reply With Quote
  #2 (permalink)  
Old 05-03-2008, 11:09
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,261
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

You will need to remove entry of your domain name from /etc/localdomains and add same entry in /etc/remotedomains

This will sort your problem
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
  #3 (permalink)  
Old 05-03-2008, 11:21
Pandacoder's Avatar
Junior Member
 
Join Date: Dec 2007
Posts: 16
Default

Thanks, got it working as I had hoped!
__________________
$wisdom = array('knowledge', 'patience', 'experience', 'compassion', 'sympathy', 'humour', 'courage', 'tolerance', 'humility', 'Linux');
Reply With Quote
  #4 (permalink)  
Old 05-03-2008, 14:00
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 4,261
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com
Default

Quote:
Originally Posted by Pandacoder View Post
Thanks, got it working as I had hoped!
Glad to hear that
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 15:58.

 

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by Web Hosting 3.1.0
Copyright © 2001-2008, eUKhost.com. All rights reserved.

 
Site Map

knowledgebase articles

popular blog categories