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

Re: some problem in exim



Just so that you know, there are many things that I don't know.  :-)
So, when you ask a question, I think it would be more productive if you
forward it to the mailing list (debian-{simplified-,}chinese and/or
debian-user) so that more people can help, especially when I don't know the
answer myself.  :-)

On Fri, Jun 30, 2000 at 06:15:42AM +0800, Ben Luo wrote:
> Dear Fok,
> 
> Yestoday, I install exim and it may be run (i don't know). I configure it
> like you said. When I use mutt send a test email to my another mailbox,
> I find (enter "mailq" command)  email is from ben@etang.com, not 
> benluo@etang.com, I use ben as localuser in my computer. So I look
> up /etc/exim.conf , it seem a ${local-parts} control what email from. Am
> I right? I can not change it. If I change benluo, another counter in my
> computer, my new test email will be sent from benluo@etang.com.

I'm not sure either.  You can try setting the "rewrite configuration". 
There's probably a section there already.  :-)  Here is mine:

	######################################################################
	#                      REWRITE CONFIGURATION                         #
	######################################################################
	
	^(foka)@lovelife.olvc.ab.ca ${1}@ualberta.ca Ffr

Because my machine is called "lovelife.olvc.ab.ca", not known to the outside
world.  (Hey, what can I say, I love the name!  :-)  Don't bother trying to
access lovelife.olvc.ab.ca, there is no such domain name.  There is
www.olvc.ab.ca though, but that's a totally different computer from a
webhosting service hosting the OLVC Home Page.  :-)  Anyhow...

You probably want a rule like this:

	^ben@etang.com benluo@etang.com Ffr

The "Ffr" means it will rewrite the From, from, and reply-to headers (???).
I can't remember.  Read the exim manual in /usr/doc/exim.  :-)  Let me know
if it works for you or not.  Also, if anyone knows a better solution, please
share with us.  I don't fully understand exim myself.

You may or may not need to add an alias entry in /etc/aliases.
Something like "benluo: ben".  Or maybe not.  I don't know.  Only do this if
you can't get your own e-mail.  (??)

> The second one, I can not use fetchmail. If i type
> fetchmail
> it answer
> fetchmail: no mailservers have been specified.

I thought you have already got fetchmail set up already.  :-P

You can either set up /etc/fetchmailrc (if you want to run it as root), or
~ben/.fetchmailrc (probably easier and better).  I have something like this
in my ~/.fetchmailrc:

	set postmaster "foka"
	set invisible
	set no bouncemail
	
	defaults
		monitor ppp0
		fetchall
	
	poll imap.srv.ualberta.ca protocol IMAP
		username "foka" password "mimi"

	poll pop3.freewwweb.com protocol POP3
		username anthonyfok is foka here
		password miaomiao

Make sure it is -rw------- (chmod 600) to ensure no one can read your
password.  In your case, you probably need something like:

	poll pop3.etang.com protocol POP3
		username benluo is ben here
		password wangwang

Hope this helps.

Anthony

-- 
Anthony Fok Tung-Ling                Civil and Environmental Engineering
foka@ualberta.ca, foka@debian.org    University of Alberta, Canada
Debian Chinese Project -- http://www.debian.org/international/chinese/
Come visit Our Lady of Victory Camp -- http://www.olvc.ab.ca/



Reply to: