Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
computers:truenas:mail [06-Nov-2021 13:56] – Steve Joynt | computers:truenas:mail [02-Feb-2025 16:14] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 16: | Line 16: | ||
====== Set up the Mailbox ====== | ====== Set up the Mailbox ====== | ||
- | 1. Define | + | We need to define |
+ | |||
+ | Note: You can't log in as root to pick up your mail - that would be dangerous, because the mail system would have to run as root to access the files containing the mail. If there' | ||
The domain name (the bit after the @ sign in the email address) can be localhost, or the domain name you set up when you created this jail. If it is omitted, it will default to localhost. This is ok for emails between users of the same jail. | The domain name (the bit after the @ sign in the email address) can be localhost, or the domain name you set up when you created this jail. If it is omitted, it will default to localhost. This is ok for emails between users of the same jail. | ||
Line 24: | Line 26: | ||
In this example I will be creating a mailbox called " | In this example I will be creating a mailbox called " | ||
+ | Execute this... | ||
< | < | ||
jexec " | jexec " | ||
+ | |||
</ | </ | ||
+ | |||
+ | Provide this information when asked... | ||
< | < | ||
Username: administrator | Username: administrator | ||
Line 59: | Line 65: | ||
</ | </ | ||
- | ====== Set up the Mail Delivery Agent ====== | + | ====== Set up the SMTP Mail Delivery Agent ====== |
I will be using the simple // | I will be using the simple // | ||
- | 1. Build the initial configuration | + | 1. Build the initial configuration. |
< | < | ||
jexec " | jexec " | ||
Line 70: | Line 76: | ||
2. Tell sendmail where to deliver root's mail to. | 2. Tell sendmail where to deliver root's mail to. | ||
- | |||
- | Node: You can't log in as root to pick up your mail - that would be dangerous, because the mail system would have to run as root to access the files containing the mail. If there' | ||
< | < | ||
Line 89: | Line 93: | ||
After that, insert a new line like this... | After that, insert a new line like this... | ||
< | < | ||
- | root: mailbox | + | root: administrator |
</ | </ | ||
- | --- | + | 3. Generate the aliases.db file and anything else that's required. |
+ | < | ||
+ | jexec "ioc-${JAIL_NAME:? | ||
+ | |||
+ | </ | ||
+ | |||
+ | 4. Enable sendmail features. | ||
< | < | ||
- | jexec " | + | jexec " |
jexec " | jexec " | ||
jexec " | jexec " | ||
Line 102: | Line 112: | ||
</ | </ | ||
+ | 5. Start the sendmail MTA service. | ||
< | < | ||
Line 112: | Line 123: | ||
I need to be able to view messages on my workstation using a normal mail reader. The messages I receive will be actioned and then deleted. I don't need the clever folders that IMAP provides, so I'll just use the POP protocol to access the mailbox. | I need to be able to view messages on my workstation using a normal mail reader. The messages I receive will be actioned and then deleted. I don't need the clever folders that IMAP provides, so I'll just use the POP protocol to access the mailbox. | ||
- | Initially | + | I will be using the //qpopper// service to provide simple POP mailbox |
+ | |||
+ | 1. Install | ||
+ | < | ||
+ | jexec " | ||
+ | |||
+ | </ | ||
+ | |||
+ | 2. Configure | ||
+ | < | ||
+ | jexec " | ||
+ | </ | ||
+ | |||
+ | Search for this section | ||
+ | < | ||
+ | # | ||
+ | # example entry for the optional pop3 server | ||
+ | # | ||
+ | #pop3 | ||
+ | pop3 stream | ||
+ | </ | ||
+ | |||
+ | 3. Activate | ||
+ | < | ||
+ | jexec " | ||
+ | jexec " | ||
+ | |||
+ | </ | ||
====== Set up Thunderbird to access the Mailbox ====== | ====== Set up Thunderbird to access the Mailbox ====== | ||
+ | |||
+ | Select " | ||
+ | |||
+ | Select "Add Mail Account" | ||
+ | |||
+ | < | ||
+ | Your full name: System Administrator | ||
+ | Email address: administrator@net.joynt.org.uk | ||
+ | Password: ***** | ||
+ | Remember passowrd: checked | ||
+ | </ | ||
+ | Configure manually... | ||
+ | |||
+ | Incomming Server... | ||
+ | < | ||
+ | Protocol: pop3 | ||
+ | Hostname: net.joynt.org.uk | ||
+ | Port: 110 | ||
+ | Connection security: none | ||
+ | Authentication method: Normal password | ||
+ | Username: administrator | ||
+ | </ | ||
+ | |||
+ | Outgoing Server... | ||
+ | < | ||
+ | Hostname: net.joynt.org.uk | ||
+ | Port: 25 | ||
+ | Connection security: none | ||
+ | Authentication method: No authentication | ||
+ | </ | ||
+ | |||
+ | Warning... I understand the risks | ||
====== Credits ====== | ====== Credits ====== | ||
Line 123: | Line 194: | ||
* [[https:// | * [[https:// | ||
* [[https:// | * [[https:// | ||
- | * [[https://logs.paulooi.com/setup-sendmail-smart-relay-in-freebsd.php]] | + | * [[https://blog.andreev.it/?p=199]] |
+ | * [[http:// | ||