Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Local Mail - Exim
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Coppensw
n00b
n00b


Joined: 28 Jan 2004
Posts: 7

PostPosted: Thu Mar 11, 2004 5:06 pm    Post subject: Local Mail - Exim Reply with quote

Hi,

We have always used Redhat in the past. Recently we started migrating to Gentoo, but we met some difficulties.

In Redhat it was possible to send mail to local users without having a smtp server running (eg for cron). I have searched the forums and to have the same functionaity I need a smtp server on Gentoo.

I only have to send mail to local users and some mail to an external address like support@example.com. That's all I need. So I need a very small and secure mail server. Which one can I use and which one do you recommend? It should only listen on localhost.

For the moment, I have installed exim, but it's not working like expected.

This is my exim.conf file:

######################################################################
# MAIN CONFIGURATION SETTINGS #
######################################################################

local_interfaces = 127.0.0.1

domainlist local_domains = @
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1

acl_smtp_rcpt = acl_check_rcpt
never_users = mail
host_lookup = *

rfc1413_hosts = *
rfc1413_query_timeout = 30s
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d

begin acl
acl_check_rcpt:
accept hosts = :
deny local_parts = ^.*[@%!/|] : ^\\.
accept local_parts = postmaster
domains = +local_domains
require verify = sender
accept domains = +local_domains
endpass
verify = recipient
accept domains = +relay_to_domains
endpass
verify = recipient
accept hosts = +relay_from_hosts
accept authenticated = *
deny message = relay not permitted

begin routers
dnslookup:
driver = dnslookup
domains = ! +local_domains
transport = remote_smtp
ignore_target_hosts = 0.0.0.0 : 127.0.0.0/8
no_more
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/mail/aliases}}
# user = exim
file_transport = address_file
pipe_transport = address_pipe
localuser:
driver = accept
check_local_user
transport = local_delivery
cannot_route_message = Unknown user
begin transports
remote_smtp:
driver = smtp
local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
address_pipe:
driver = pipe
return_output
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply


I can send mail to local users, but not to external users.
I also need to send mail to root (for cron and other jobs).

Can somebody help me please ?

Wouter
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum