[exim] locally-originated message

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: andreas graeper
Dátum:  
Címzett: exim-users
Tárgy: [exim] locally-originated message
hi,
for testing i want to send messages to local/remote recipients at comandline

echo "message" | exim -F fullname -f address recipient # sh-script
with lots of such lines

local delivery already works.

When mua is sending message to exim .. to smarthost, i use
$authenticated_id (a systemuser) to lookup for smarthost-user and
-passwd. but when from commandline no authentication (to exim as
server) takes place, i wanted to hardcode (as first solution) a user
in an acl_m-variable. (i wanted to use that var in both cases:
when authenticated $acl_m_user = $authenticated_id (works !)
otherwise $acl_m_user = 'ag'
)
then generating auth-string client_send = '^user^pass' from lookup(
$acl_m_user )

i tried to distinct request from mua ( hosts=172.27.0.0/16,
authenticated ) and from comandline (hosts='' ???, not authenticated )
but could not succeed.

check_smtp_rcpt:
  # fetchmail (only local delivery with appendfile)
  accept hosts = 127.0.0.1
    endpass
    verify = recipient
  # all other authenticated only
  accept hosts = 172.27.0.0/16
    authenticated = *
    set acl_m_user = $authenticated_id
  accept hosts = :
    set acl_m_user = 'ag'
  deny message "ACL_RCPT failed $sender_host_address, $authenticated_id"


how this is done correctly ?

when sending message from commandline then sender_address is
user@host
though domainname is set ?

thanks in advance
andreas