[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Exim ignoring aliases, relaying email to incorrect addresses.



Hi,

I have successfully setup my debian box to send email to my gmail
account, but it is not expanding aliases correctly, and it is sending
email to the wrong user@gmail.com.

I would like to have any email sent to just "root" or my local login
account via cron, logwatch, etc, automatically forwarded to my gmail
account, but exim is forwarding my email to myself, and then also it
looks like to root@gmail.com, or hovland@gmail.com, which are my
unexpanded userid's on my debian box.

Config files are as such:

# /etc/aliases
mailer-daemon: postmaster
postmaster: root
nobody: root
hostmaster: root
usenet: root
news: root
webmaster: root
www: root
ftp: root
abuse: root
noc: root
security: root
root: stefhen.hovland@gmail.com
hovland: stefhen.hovland@gmail.com



# This is /etc/email-addresses. It is part of the exim package
#
# This file contains email addresses to use for outgoing mail. Any local
# part not in here will be qualified by the system domain as normal.
#
# It should contain lines of the form:
#
#user: someone@isp.com
#otheruser: someoneelse@anotherisp.com

root: stefhen.hovland@gmail.com
hovland: stefhen.hovland@gmail.com



# /etc/exim4/passwd.client
### CONFDIR/passwd.client
#
# Format:
#targetmailserver.example:login:password
#
# default entry:
### *:bar:foo
*:stefhen.hovland:password


Example transaction from me as hovland trying to email "root", on my local box:

2005-10-04 19:39:25 1EMxJd-0001tx-SK <= stefhen.hovland@gmail.com
U=hovland P=local S=429 id=20051005003925.GA7305@gmail.com
2005-10-04 19:39:27 1EMxJd-0001tx-SK => root@gmail.com R=smarthost
T=remote_smtp_smarthost H=gmail-smtp.l.google.com [72.14.205.109]
X=TLS-1.0:RSA_3DES_EDE_CBC_SHA:24
2005-10-04 19:39:27 1EMxJd-0001tx-SK Completed

Shouldnt root get translated to -> stefhen.hovland@gmail.com?

I will receive my message on my gmail account which was directed to
root, but I also get an error response from gmail that it was trying
to forward my email also to the user: root@gmail.com


Example:

This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

    root@gmail.com

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 9): 550 5.7.1 No such user i19si239371wxd

  ----- Original message -----

Received: by 10.64.204.6 with SMTP id b6mr108721qbg;
       Tue, 04 Oct 2005 17:39:27 -0700 (PDT)
Return-Path: <stefhen.hovland@gmail.com>
Received: from localhost.lan ( [68.58.2.94])
       by mx.gmail.com with ESMTP id e13sm119870qbe.2005.10.04.17.39.27;
       Tue, 04 Oct 2005 17:39:27 -0700 (PDT)l to root@gmail.com it
looks like also:



Any thoughts?

Thanks,
Stefhen



Reply to: