=== octav1a is now known as octav1a_bday === tomreyn_ is now known as tomreyn [13:20] do you guys know how can I specify the relay/smtp server to be used by sm-mta? [13:24] so I avoid issues like Jul 13 13:14:17 my-server.hostname.com sm-mta[15339]: 169GH1sX018435: to=admins@hostname.com, ctladdr= (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] my server does not have a public IP [13:26] Why are you using sendmail? [13:26] 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] 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] 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] if possible I'd like to keep the default sendmail, there must be a setting for it [13:34] Sparkee: sendmail isn't default on Ubuntu. [13:35] rbasak: oh, I saw /etc/cron.d/sendmail and I thought it is, what is the default? [13:35] postfix [13:35] How did you end up with sendmail installed? [13:35] It's not there by default. [13:35] hmmm, I'm not seeing it installed [13:36] most (if not all) MTAs provide the sendmail program for compatibility reasons [13:36] I see [13:36] it isn't actually sendmail, it's a sendmail compatible interface [13:37] ok... [13:38] in /var/log/mail.log and /var/log/maillog I'm seeing "sm-mta" [13:38] That suggests to me that you actually have sendmail installed [13:38] 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] 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] ok [13:40] with sendmail I can send emails without a daemon be listening [13:41] can I do that with postfix? [13:41] no [13:42] can you configure postfix to listen only on 127.0.0.1? [13:42] I ONLY want to send emails [13:42] but I want to do it from ~50 servers :) [13:43] yes [13:43] that's good [13:43] is that also configured in /etc/postfix/main.cf ? [13:44] yes, also pretty sure it does that by default when you choose satellite system [13:45] mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 [13:45] inet_interfaces = loopback-only [13:45] ty! [13:46] I'm going to give it a try as soon as I can [16:56] btw postfix, what logrotate config do you use for it? === genii-core is now known as genii