NNCP: Difference between revisions

Ehmry (talk | contribs)
Add configurations examples for relaying email.
Klinger (talk | contribs)
m Category:CLI added
 
(4 intermediate revisions by 2 users not shown)
Line 168: Line 168:
=== Sending mail ===
=== Sending mail ===


To send mail alice configures her client send mail to her mailserver by using nncp-exec as if it were <code>sendmail</code>.
To send mail alice configures her client to relay mail to her mailserver by using nncp-exec as if it were <code>sendmail</code>.


<code>
<code>
Line 243: Line 243:


       # Configure a NNCP Mail Delivery Agent (MDA) for local users.
       # Configure a NNCP Mail Delivery Agent (MDA) for local users.
       action "nncp" mda "/run/wrappers/bin/nncp-exec -quiet %{rcpt.user} sendmail"
       action "nncp" mda "/run/wrappers/bin/nncp-exec -quiet %{dest.user:strip} sendmail"


       # Configure SMTP relaying to external domains.
       # Configure SMTP relaying to external domains.
Line 255: Line 255:
}
}
</syntaxhighlight>
</syntaxhighlight>
[[Category:Networking]]
[[Category:Server]]
[[Category:CLI]]