Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to deliver cron generated emails to my id, instead of being saved on /var/spool/clientqueue

I've done the following:

echo "set" > /root/.mailrc echo "set" >> /root/.mailrc

but nothing happen.

Any help ??

No I don't want to run MTA on my machine. I want to using external smtp instead of running a smtp on my machine. this is what i want.

I don't want to use postfix or sendmail. I want to use a smtp server as normally we use smtp in outlook express as outgoing server. Same like that i want to use an external smtp for cron.

I want to deliver emails on behalf of other MTA which would be use as smtp for all of the emails delivery.

share|improve this question
Do you actually have an MTA running on the box? Which one? And can you post the content of /etc/aliases. – wolfgangsz Sep 18 '10 at 18:56
Without an MTA how do you expect the machine to be able to pass that email to another server? – John Gardeniers Sep 20 '10 at 10:30

First, the 'To' Field is defined in /etc/aliases. Check if 'root:' is written. For the "From" part, You should rewrite the mail. I do that in postfix with "smtp_generic_maps = hash:/etc/postfix/generic" and a file where there is root

Don't forget to compile the file by 'postmap /etc/postfix/generic'

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.