[13:20] <Sparkee> do you guys know how can I specify the relay/smtp server to be used by sm-mta?
[13:24] <Sparkee> so I avoid issues like Jul 13 13:14:17 my-server.hostname.com sm-mta[15339]: 169GH1sX018435: to=admins@hostname.com, ctladdr=<root@my-server.hostname.com> (0/0), delay=3+20:57:16, xdelay=00:00:00, mailer=esmtp, pri=931101, relay=alt3.aspmx.l.google.com., dsn=4.0.0, stat=Deferred: Connection refused by alt3.aspmx.l.google.com.
[13:24] <Sparkee> my server does not have a public IP
[13:26] <rbasak> Why are you using sendmail?
[13:26] <rbasak> Here are instructions for postfix: https://askubuntu.com/questions/228938/how-can-i-configure-postfix-to-send-all-email-through-my-gmail-account
[13:26] <rbasak> postfix is in main in Ubuntu, unlike sendmail, so better supported, and you'll be able to get better community help with it.
[13:29] <Sparkee> rbasak: the funny thing is that I updated /etc/mail/submit.cf, the did a 'mane -C /etc/mail' then reloaded, and IF I send an email by command line the system will use the email server specified on submit.cf, but system emails / root emails are ignoring this setting 
[13:30] <Sparkee> if possible I'd like to keep the default sendmail, there must be a setting for it
[13:34] <rbasak> Sparkee: sendmail isn't default on Ubuntu.
[13:35] <Sparkee> rbasak: oh, I saw /etc/cron.d/sendmail and I thought it is, what is the default?
[13:35] <rbasak> postfix
[13:35] <rbasak> How did you end up with sendmail installed?
[13:35] <rbasak> It's not there by default.
[13:35] <Sparkee> hmmm, I'm not seeing it installed 
[13:36] <qman> most (if not all) MTAs provide the sendmail program for compatibility reasons
[13:36] <Sparkee> I see
[13:36] <qman> it isn't actually sendmail, it's a sendmail compatible interface
[13:37] <Sparkee> ok...
[13:38] <Sparkee> in /var/log/mail.log and /var/log/maillog I'm seeing "sm-mta"
[13:38] <rbasak> That suggests to me that you actually have sendmail installed
[13:38] <qman> with postfix, it's very easy to set up a remote relay, the dpkg configuration has an option for it built in, "satellite system"
[13:39] <qman> using gmail for your relay requires more changes than that since they use auth and custom settings, but for connecting to another postfix relay, it just works
[13:39] <Sparkee> ok
[13:40] <Sparkee> with sendmail I can send emails without a daemon be listening 
[13:41] <Sparkee> can I do that with postfix?
[13:41] <qman> no
[13:42] <Sparkee> can you configure postfix to listen only on 127.0.0.1?
[13:42] <Sparkee> I ONLY want to send emails
[13:42] <Sparkee> but I want to do it from ~50 servers :)
[13:43] <qman> yes
[13:43] <Sparkee> that's good
[13:43] <Sparkee> is that also configured in /etc/postfix/main.cf ?
[13:44] <qman> yes, also pretty sure it does that by default when you choose satellite system
[13:45] <qman> mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
[13:45] <qman> inet_interfaces = loopback-only
[13:45] <Sparkee> ty!
[13:46] <Sparkee> I'm going to give it a try as soon as I can
[16:56] <Sparkee> btw postfix, what logrotate config do you use for it?