How do I add email sending capabilities? - Printable Version +- Forum (http://forum.xbian.org) +-- Forum: Software (/forum-6.html) +--- Forum: Installation (/forum-16.html) +--- Thread: How do I add email sending capabilities? (/thread-2077.html) |
How do I add email sending capabilities? - Gladfelder - 1st Feb, 2014 06:32 AM I have installed flexget which can send notification emails. syslog has the following error; Terminal Jan 31 19:15:23 xbian anacron[1026]: Job `cron.daily' terminated (mailing output) Jan 31 19:15:23 xbian anacron[1026]: Can't find sendmail at /usr/sbin/sendmail, not mailing output Please can someone give me NooB level instructions for adding this?[/quote] RE: How do I add email sending capabilities? - teekay - 1st Feb, 2014 08:21 PM First you need to install a basic MTA, like postfix or sendmail. I'd recommend postfix as it is way easier to setup if the default settings don't do what you want them to do. Sendmail config syntax is masochistic. (Postfix also comes with the binary /usr/sbin/sendmail, so that's compatible) Then try and see if it works by default by sending a test mail with something like Terminal echo "test 1 2 3"|mailx -s "Test Email" receiver@domain.com Most mail servers block connections from dynamic IPs, so if you have a dynamic IP, you will need to configure mail relaying through the ISPs mail relay gateway. RE: How do I add email sending capabilities? - Gladfelder - 1st Feb, 2014 09:55 PM OK, I will give postfix a go. I found install instructions HERE. The instructions mention adding a domain. I have a couple of domains but they have their own mail servers and I do not want their DNS MX and A records confused by a duplicate entry. Do I have to enter these details or are they optional? (1st Feb, 2014 08:21 PM)teekay Wrote: Most mail servers block connections from dynamic IPs, so if you have a dynamic IP, you will need to configure mail relaying through the ISPs mail relay gateway.The emails will be sent via Gmail. I have copied a previously working config.yml with email setttings onto this install. I will let it run and see what happens. RE: How do I add email sending capabilities? - Gladfelder - 1st Feb, 2014 11:23 PM Some good and bad results. The following are the notes I made during the install process. Code: ALL the following need to be sudo commands (sudo -i first) RE: How do I add email sending capabilities? - Gladfelder - 2nd Feb, 2014 06:05 AM I was checking the syslog when I noticed that the mail.log and mail.info files had changed. The content is the same in both files but confusing. Below is the telnet session input to create the message. Terminal mail from:<me>@gmail.com rcpt to:<me>@gmail.com data To: <me>@gmail.com From: <me>@gmail.com Subject: Hey my first email This is my first email on debian postfix after installing configuring it. It was easy. This is the mail.log Code: Feb 1 09:12:56 xbian postfix/sendmail[27602]: warning: inet_protocols: disabling IPv6 name/address support: Address family not supported by protocol RE: How do I add email sending capabilities? - mk01 - 3rd Feb, 2014 09:34 AM @Gladfelder postfix is full mail in the meaning designed to process millions of email / day. although it is possible to configure it just for outgoing mail, … makes no sense. either configure /etc/postfix/main.cf and postfix.cf or install exim4-daemon-light or smail. but for your purposes the best option is something like this http://www.logix.cz/michal/devel/smtp-cli/ SOLVED: How do I add email sending capabilities? - Gladfelder - 3rd Feb, 2014 11:35 PM (3rd Feb, 2014 09:34 AM)mk01 Wrote: @GladfelderThanks for those ideas. I believe I have actualy got it working. I followed these comrehensive instructions to the letter Get cron/alert mails to external address using Postfix+Gmail. Before doing that I did apt-get --purge remove postfix to ensure I was starting from scratch. Curiously, the testing at the end did not work but I am now getting 'Anacron job 'cron.weekly' on xbian' (and daily) emails so it appears to be working. AW: RE: SOLVED: How do I add email sending capabilities? - freem@n - 3rd Feb, 2014 11:59 PM (3rd Feb, 2014 11:35 PM)Gladfelder Wrote: I am now getting 'Anacron job 'cron.weekly' on xbian' (and daily) emails so it appears to be working. I have configured sendmail + ssmtp with my gmail address because I have a script that sends a link once a week to a bunch of friends. however I'm also receiving those weird cron.daily/cron.weekly messages because root@xbian is not a valid email address. I have already tried adding MAILTO="" to cron file (by running crontab -e) but this doesn't work for daily and weekly system crontab obviously. |