LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Bad configuration for mail server (https://www.linuxquestions.org/questions/linux-server-73/bad-configuration-for-mail-server-601827/)

fakie_flip 11-23-2007 02:48 AM

Bad configuration for mail server
 
Something is wrong with my configuration on my mail server. My username in linux is chris, and my hostname is ubuntu. But the mail sent by crontab is going to chris@gmail.com which is not my email. Here's my configuration.

ssmtp.conf:

Code:

  1 #
  2 # Config file for sSMTP sendmail
  3 #
  4 # The person who gets all mail for userids < 1000
  5 # Make this empty to disable rewriting.
  6 root=christopher.lemire@gmail.com
  7
  8 # The place where the mail goes. The actual machine name is required no
  9 # MX records are consulted. Commonly mailhosts are named mail.domain.com
 10 mailhub=smtp.gmail.com:587
 11
 12 # Where will the mail seem to come from?
 13 rewriteDomain=gmail.com
 14
 15 # The full hostname
 16 hostname=ubuntu
 17
 18 # Are users allowed to set their own From: address?
 19 # YES - Allow the user to specify their own From: address
 20 # NO - Use the system generated From: address
 21 FromLineOverride=YES
 22
 23 UseSTARTTLS=YES                    # Send SSL/TLS messages to Gmail
 24 AuthUser=christopher.lemire            # Your Gmail Username
 25 AuthPass=mypass            # Your Gmail Password
 26 rewriteDomain=gmail.com            # So the message appears to come from Gma    il
 27 FromLineOverride=YES              # So the message appears to come from Gma    il

Here is the problem.

http://img214.imageshack.us/my.php?image=cronjobfm8.png


All times are GMT -5. The time now is 04:03 PM.