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

The site I manage has email configured on Google Apps. So, all email accounts are there. I therefore don't want to have my local senmail accept mail for my domain. Instead, if should send it to gmail. I have put the following at the end of and recompiled


However, I'm getting the following error still:

Jul  2 22:47:23 culinaryhalloffame sendmail[21267]: p632lNDk021267: from=apache, size=753, class=0, nrcpts=1, msgid=<>, relay=apache@localhost
Jul  2 22:47:23 culinaryhalloffame sendmail[21270]: p632lNkV021270: from=<>, size=851, class=0, nrcpts=1, msgid=<>, proto=ESMTP, daemon=MTA, relay=localhost []
Jul  2 22:47:23 culinaryhalloffame sendmail[21267]: p632lNDk021267:, ctladdr=apache (48/48), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30753, relay=[] [], dsn=2.0.0, stat=Sent (p632lNkV021270 Message accepted for delivery)
Jul  2 22:47:24 culinaryhalloffame sendmail[21272]: STARTTLS=client,, version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-SHA, bits=128/128
Jul  2 22:47:27 culinaryhalloffame sendmail[21272]: p632lNkV021270: to=<>, ctladdr=<> (48/48), delay=00:00:04, xdelay=00:00:04, mailer=relay, pri=120851, [], dsn=5.1.1, stat=User unknown
Jul  2 22:47:27 culinaryhalloffame sendmail[21272]: p632lNkV021270: p632lRkV021272: DSN: User unknown
Jul  2 22:47:27 culinaryhalloffame sendmail[21272]: p632lRkV021272: to=root, delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32102, dsn=2.0.0, stat=Sent

Any hints? I don't want SMTP authentication. I just want the outgoing email sent to Gmail instead of getting intercepted locally.

Thanks for the help.

share|improve this question
up vote 2 down vote accepted

MAIL_HUB seems better for your needs than LUSER_RELAY. You do, after all, state that all accounts are on Google Apps.

share|improve this answer
Thanks JdeBP. I actually figured that out after the post. For reference, the line was: define(MAIL_HUB',')dnl Then recompiled with: m4 /etc/mail/ > /etc/mail/ And restarted the service. – recluze Jul 5 '11 at 4:02

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.