LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-11-2005, 09:53 PM   #1
kurrupt
Member
 
Registered: Jul 2004
Distribution: Debian, Ubuntu, FreeBSD, RHEL
Posts: 202

Rep: Reputation: 31
exim + local email only


Hello guys, I have been googling around and iam still having issues setting up exim to send email to the loop back address, all I want is my cron job respnses emailed to me locally on the same PC.. everytime i try to send a test email.. it adds name@boxname.ispdns.com and i would like to remove that ispdns.com junk because i want it to come back to me


how would this be setup ?

Thanks
 
Old 11-12-2005, 03:01 PM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,552

Rep: Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872Reputation: 872
Could you post your /etc/hosts ?
 
Old 11-12-2005, 03:45 PM   #3
kurrupt
Member
 
Registered: Jul 2004
Distribution: Debian, Ubuntu, FreeBSD, RHEL
Posts: 202

Original Poster
Rep: Reputation: 31
127.0.0.1 localhost talonb0x

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
 
Old 11-12-2005, 06:29 PM   #4
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
there are most likely lots of ways to do this
(this stuff is from exim4 -- i have an older exim3 file around i think if you are using exim3)
what is adding the extra junk at the end of the Aaddress is the exim.conf line
qualify_domain =
so leave that blank and it should use primary_hostname value
also involved is the line
Code:
domainlist local_domains = @ : \
    @[] : \
    localhost : \
    boxname
and of course in the accept list
accept domains = +local_domains
Remote addresses are only those with a domain that does not match any item
in the "local_domains" setting above

there is also some junk in directors configuration (the first set of stuff) that handles local mail
mine says
Code:
real_local:
#!!# prefix renamed local_part_prefix
  driver = accept
  check_local_user
  local_part_prefix = real-
  transport = local_delivery
the junk is so complicated because its variables defined elsewhere in the file most times
will try to help more if needed

Last edited by foo_bar_foo; 11-12-2005 at 06:32 PM.
 
Old 11-12-2005, 06:44 PM   #5
jdogpc
Member
 
Registered: Jul 2005
Location: Mafra, PT
Distribution: Fedora Core
Posts: 90

Rep: Reputation: 15
hi

Try this

edit your exim.conf file and change or insert these lines:

-----------------------------------------------------------------------------------------------------------------------------

#In the Main configuration section

domainlist local_domains = @ : "What ever else domains you want separated by :"
hostlist relay_from_hosts = 127.0.0.1 : "What ever else subnets or ip's you want separated by :"

#TRANSPORTS CONFIGURATION

# This transport is used for delivering messages over SMTP connections.

remote_smtp:
driver = smtp


# This transport is used for local delivery to user mailboxes in traditional
# BSD mailbox format. By default it will be run under the uid and gid of the
# local user, and requires the sticky bit to be set on the /var/mail directory.
# Some systems use the alternative approach of running mail deliveries under a
# particular group instead of using the sticky bit. The commented options below
# show how this can be done.

local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
group = mail
mode = 0660


-----------------------------------------------------------------------------------------------------------------------------------


it is good idea to add an alias to root if you are sending mail's to root.
edit /etc/aliases:
.
.
.
# Person who should get root's mail
root: Some_User

and ten run newaliases


Hope this helps, it is working for me not just for local delivery but also for remote as I using it as mail mail server.

JdogPC

Last edited by jdogpc; 11-12-2005 at 06:45 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Exim, restrict sending from ourdomain.com to local subnet humbletech99 Linux - Security 4 11-25-2005 04:07 AM
email/Exim Problems bassfreq Debian 1 04-02-2005 02:49 PM
how to get exim to send email? SciYro Linux - Software 4 09-08-2004 07:26 PM
Exim Configuration for local mail. Greymist Linux - Software 0 06-06-2004 07:16 AM
exim, email, and dns edfinegan Linux - Software 0 10-05-2003 07:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration