/srv/irclogs.ubuntu.com/2021/07/13/#ubuntu-server.txt

=== octav1a is now known as octav1a_bday
=== tomreyn_ is now known as tomreyn
Sparkeedo you guys know how can I specify the relay/smtp server to be used by sm-mta?13:20
Sparkeeso 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
Sparkeemy server does not have a public IP13:24
rbasakWhy are you using sendmail?13:26
rbasakHere are instructions for postfix: https://askubuntu.com/questions/228938/how-can-i-configure-postfix-to-send-all-email-through-my-gmail-account13:26
rbasakpostfix is in main in Ubuntu, unlike sendmail, so better supported, and you'll be able to get better community help with it.13:26
Sparkeerbasak: 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:29
Sparkeeif possible I'd like to keep the default sendmail, there must be a setting for it13:30
rbasakSparkee: sendmail isn't default on Ubuntu.13:34
Sparkeerbasak: oh, I saw /etc/cron.d/sendmail and I thought it is, what is the default?13:35
rbasakpostfix13:35
rbasakHow did you end up with sendmail installed?13:35
rbasakIt's not there by default.13:35
Sparkeehmmm, I'm not seeing it installed 13:35
qmanmost (if not all) MTAs provide the sendmail program for compatibility reasons13:36
SparkeeI see13:36
qmanit isn't actually sendmail, it's a sendmail compatible interface13:36
Sparkeeok...13:37
Sparkeein /var/log/mail.log and /var/log/maillog I'm seeing "sm-mta"13:38
rbasakThat suggests to me that you actually have sendmail installed13:38
qmanwith postfix, it's very easy to set up a remote relay, the dpkg configuration has an option for it built in, "satellite system"13:38
qmanusing 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 works13:39
Sparkeeok13:39
Sparkeewith sendmail I can send emails without a daemon be listening 13:40
Sparkeecan I do that with postfix?13:41
qmanno13:41
Sparkeecan you configure postfix to listen only on 127.0.0.1?13:42
SparkeeI ONLY want to send emails13:42
Sparkeebut I want to do it from ~50 servers :)13:42
qmanyes13:43
Sparkeethat's good13:43
Sparkeeis that also configured in /etc/postfix/main.cf ?13:43
qmanyes, also pretty sure it does that by default when you choose satellite system13:44
qmanmynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/12813:45
qmaninet_interfaces = loopback-only13:45
Sparkeety!13:45
SparkeeI'm going to give it a try as soon as I can13:46
Sparkeebtw postfix, what logrotate config do you use for it?16:56
=== genii-core is now known as genii

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!