Install Postfix on DS101j
* many tutorial I found from the web told me create client certificate in order to use gmail as relay. But the fact is that client certificate is NOT a must in order to talk to gmail SMTP. I just want the installation as simple as possible because all I need is to send out some alert email and some snapshot from the IP cam.
1. Login to the admin console. Create a user ‘mail’ and a group ‘mail’.
2. Telnet/SSH as root. Install postfix using ipkg. (uninstall xmail first if it is already existed)
# ipkg remove xmail
# ipkg install postfix -force-depends
Make sure cyrus-sasl and cyrus-sasl-libs are installed as well, if not..)
# ipkg install cyrus-sasl
# ipkg install cyrus-sasl-libs
Continue reading Synology usage series 14: Setup Postfix SMTP server with gmail relay
This article is depreciated. Please refer to usage series 15 for better solution.
Thank you dyndns for keep deleting/banning my free ddns account for whatever reason.
I decided to have both of my NAS telling me their pubic IP address. And so I written the script below and have crontab execute the script twice [...]
In order to send email from CLI, I setup nail as below:
1. ipkg install nail 2. edit /opt/etc/nail.rc, add following lines to the end of the file
set smtp=smtp.gmail.com:587 set smtp-use-starttls set smtp-auth-user=[username]@gmail.com set ssl-verify=ignore set smtp-auth-password=[password]
3. sending mail from cli:
# echo “email body” | /opt/bin/nail -s “subject” [destination]@whatever92389.com
UPDATE Jul [...]