dev:email
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
dev:email [2022/10/24 11:10] – created -- Thanks to Bill Erickson, Jason Stephenson, and Chris Sharp for this info! sandbergja | dev:email [2023/09/13 10:25] – [Option 2: exim] stompro | ||
---|---|---|---|
Line 8: | Line 8: | ||
- As the root user (or with sudo): install mutt (apt-get install mutt) | - As the root user (or with sudo): install mutt (apt-get install mutt) | ||
+ | - As root, make sure that sendmail is running (`service sendmail start` and `service sendmail status`) | ||
- Set the recipient email address to opensrf@localhost (for example, if you are testing a message sent to patrons, set your test patron' | - Set the recipient email address to opensrf@localhost (for example, if you are testing a message sent to patrons, set your test patron' | ||
- Run the process that you'd like to check the email output of. | - Run the process that you'd like to check the email output of. | ||
Line 16: | Line 17: | ||
[[https:// | [[https:// | ||
+ | |||
+ | For testing with live data, exim makes it easy to rewrite recipients, so you can prevent test emails from being sent to real email addresses. | ||
+ | |||
+ | Look for the " | ||
+ | |||
+ | Docs are at : https:// | ||
+ | |||
+ | Something like this sends all mail to a local address. | ||
+ | ##Send all messages to root@localhost | ||
+ | *@* root@localhost Tbct | ||
===== Option 3: postfix ===== | ===== Option 3: postfix ===== | ||
If you have access to your postfix production configuration, | If you have access to your postfix production configuration, | ||
+ | |||
+ | For those running a test server with live data that want to test email without worrying about accidentally emailing real people, one method is to force all email delivery to one local account. | ||
dev/email.txt · Last modified: 2023/10/19 09:47 by sandbergja