Bug #408

Packages to enable LinHES to send mail through a password protected email accnt

Added by alien almost 15 years ago. Updated about 14 years ago.

Status:Closed Start date:
Priority:Normal Due date:
Assignee:jams % Done:

100%

Category:- Spent time: 1.00 hour
Target version:6.03.00

Description

Can the following packages please be added to LinHES:

postfix procmail

I believe that these two will allow me to set up email (ex. cron output or email status messages) via a password protected pop/smtp email account.

I think this is all I need. Will need to try to find out.

Thanks!

Allen

Associated revisions

Revision 16738cd0
Added by jams about 14 years ago

runit-scripts: add postfix run file

ref #408 , # 464

Revision ece44133
Added by jams about 14 years ago

postfix: initial include

ref #464
closes #408

History

Updated by jams almost 15 years ago

Instead of installing a full blown MTA I beleive the plan was to use something like.
http://caspian.dotconf.net/menu/Software/SendEmail/
There are some others we were looking at, but cant find the names at the moment.

http://putmail.sourceforge.net/home.html
sSMTP

Updated by alien almost 15 years ago

Yes, I used sendemail for a while. However, it doesn't integrate into the system and provide a sendmail. I switched to postfix some months ago and am much happier with it. The main advantage is that emails that the system attempts to send (ex. cron, vi recoveries, etc.) are delivered.

It isn't necessarily full blow MTA. It simply sends email through an SMTP account (like sendemail). However, it also provides a sendmail executable. I'm sure one could write a sendmail script that calls sendemail, but there is no need because postfix does that.

I provided instructions to set it up in r5.5 here: http://knoppmyth.net/phpBB2/viewtopic.php?t=19552&highlight=postfix

Updated by alien almost 15 years ago

I just figured out how to build packages. It turns out it is easier than I thought.

Let me try and set it up before we decide to add it or not.

Updated by alien almost 15 years ago

Okay. I built the packages and internal mail worked out of the box. External mail only required adding a few lines to the config file.

If helpful, I can provide the config file changes so only the account information needs to be filled in. Internal mail will still work and external mail will work as soon as this information is entered.

I'd like to see the following feature/program added to R6:
procmail, postfix

I think the addition of feature/program would be beneficial because:
1. It allows internal mail to be sent in the box. Specifically useful for system mail notifications (cron failures, editor crashes, etc.).
2. It allows external mail to easily be configured via an external smtp account.

Feature/program X can be found at(please provide a link):
pacman

Program X has the following dependencies and can be found(please provide a link):
None.

Updated by alien almost 15 years ago

I'm not sure if this is useful, but the following config changes will set it up so all it needs is the account information to send mail:

1. Add the following to /etc/runinit/1.local:

/etc/rc.d/postfix start

2. Add the following to the bottom of /etc/postfix/main.cf:

## SASL Settings smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/myth/security/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sasl_tls_security_options = noanonymous smtp_tls_loglevel = 1 smtp_tls_security_level = may tls_random_source = dev:/dev/urandom disable_dns_lookups = yes inet_interfaces = all # Enabling email delivery through a smtp account: # # 1. Edit /myth/security/sasl_passwd (create the dir if necessary) # with the following contents: # <smtpServer>:587 YourUserID@domain:YourPassWord # For example: # smtp.gmain.com:587 sillyme@gmail.com:myPassword # # 2. Create a password hash file: # cd /myth/security # sudo sasl_passwd # sudo chown root:root sasl_passwd* # sudo chmod go-rwx sasl_passwd* # # 3. Set the relayhost below to point to the smtp server. For # example: # relayhost = smtp.gmail.com:587 relayhost = <smtpServer>:587

Updated by jams about 14 years ago

  • Assignee set to jams
  • Target version set to 6.03.00

bare postfix added.
Removed mysql,ldap,pg support

Updated by jams about 14 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

Applied in changeset commit:"cc6d7a2f110044660e797cc073b5c17124faa77d".

Also available in: Atom PDF