Outbound mail SMTP

I’m having a terrible time trying to understand all of the email documentation.
I haven’t had my lunch yet either, and have been undergoing a fresh install of RT/RTIR for the past few hours. LOL .
Anyhow,
Could someone please point me in the right direction towards what I need from RT/RTIR.

  1. I’m going to be using RTIR, not RT. (I don’t think it matters) Between me&my boss who run the SOC to track incidents
  2. I just need email to go outbound from an internal server hosting RT THROUGH a mail gateway that we have EX ##MAILGATEWAY.COMPANYNAME.LOCAL### , right now RTIR is crashing when needing to do specific things/clicking around learning the platform , probably because it’s trying to send email out to our email addresses linked to our accounts.
  3. I wouldn’t mind having a centralized mailbox where we can recieve tickets too… JUST ONE EMAIL ADDRESS…

Someone help, I’m headed to lunch - but I’ll be receiving all replies to this ticket via email.

Seriously, thanks in advance.

If anyone needs my current config, /questions as to what I’m already using… please let me know where I can find the information to relay back to you.

THANKS!!!

right now RTIR is crashing when needing to do specific things/clicking around learning the platform , probably because it’s trying to send email out to our email addresses linked to our accounts.

Clicking around the UI wouldn’t cause RT to send email, so if RT is crashing just from viewing the UI and not making any changes then that sounds like a different issue. What do the RT logs say when you run into one of these errors?

just need email to go outbound from an internal server hosting RT THROUGH a mail gateway that we have EX ##MAILGATEWAY.COMPANYNAME.LOCAL###

Could you explain what your current set-up is? Are you hosting your own mail server using something like exchange or Postfix?

1 Like

Hey @knation
No not from just clicking around, I would have to respond to a ticket and CC someone.
I think it’s anything that requires an email being sent would cause the system to haul.
Clicking around is fine and all db functions seem normal.
Without setting up email, it says in the documentation that the system will not operate 100%.

@knation
I’m at an enterprise where they have their own exchange-mail server, essentially I can send mail out of a mail relay here, and I have the IP address of the server running RT white listed so if I was able to point out to that server it would send out of my environment with some sort of noreply@ ,.

Btw to @ bestpractical, what a beautiful forum.

You should be able to use Postfix to relay your mail to the external exchange server, I believe this is quite common. Searching online real quick I see this tutorial that should be a good start:

Nice!
Thank you again, you are the reason why I got my server running in the first place-
Say I get this all up and running so I can send mail out, where in RT specific would I configure this?

RT uses the Linux sendmail utility to send mail, I am not an expert on all of this but I believe installing and configuring Postfix to relay emails being sent from “user@yourcompanydomain” to your external SMTP server will make RT just “work”

Creating snapshot in vsphere as we speak if it doesn’t .
Thank you so much, you’re always such a big help.
Do you work for RT, or do you just lurk?

You probably want to set up your mail server software (postfix, exim, sendmail or whatever) first and check that its working by hand, before trying to get it working with a new RT install. Especially if you’re new to RT - you want to be working on stable foundations! If you can send/receive mail using the command line mail client on the server (‘mail’ or ‘mailx’ or ‘alpine’ for example) you’ll know that the mail side is working and then its just a case of getting RT to talk to the mail system on your machine.

1 Like

I’m having a nightmare configuring post fix, I’m not getting the emails I try to send to myself internally.

What are you seeing in the mail logs when you run your test command?

Jan 27 18:54:37 ubuntu sendmail[18693]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 18:55:37 ubuntu sendmail[18693]: unable to qualify my own domain name (ubuntu) – using short name
Jan 27 18:55:37 ubuntu sendmail[18693]: gethostbyaddr(10.0.0.225) failed: 1
Jan 27 18:55:37 ubuntu sendmail[18693]: alias database /etc/mail/aliases rebuilt by rtir
Jan 27 18:55:37 ubuntu sendmail[18693]: /etc/mail/aliases: 0 aliases, longest 0 bytes, 0 bytes total
Jan 27 18:55:37 ubuntu sm-mta[18775]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 18:55:39 ubuntu sm-msp-queue[18780]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 18:56:37 ubuntu sm-mta[18775]: unable to qualify my own domain name (ubuntu) – using short name
Jan 27 18:56:37 ubuntu sm-mta[18775]: gethostbyaddr(10.0.0.225) failed: 1
Jan 27 18:56:37 ubuntu sm-mta[18792]: starting daemon (8.15.2): SMTP+queueing@00:10:00
Jan 27 18:56:39 ubuntu sm-msp-queue[18780]: unable to qualify my own domain name (ubuntu) – using short name
Jan 27 19:00:01 ubuntu sm-msp-queue[20391]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 19:01:01 ubuntu sm-msp-queue[20391]: unable to qualify my own domain name (ubuntu) – using short name
Jan 27 19:20:01 ubuntu sm-msp-queue[20535]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 19:21:01 ubuntu sm-msp-queue[20535]: unable to qualify my own domain name (ubuntu) – using short name
Jan 27 19:35:53 ubuntu sm-mta[1286]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 19:35:55 ubuntu sm-msp-queue[1378]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 19:36:53 ubuntu sm-mta[1286]: unable to qualify my own domain name (ubuntu) – using short name
Jan 27 19:36:53 ubuntu sm-mta[1286]: gethostbyaddr(10.0.0.225) failed: 1
Jan 27 19:36:53 ubuntu sm-mta[1383]: starting daemon (8.15.2): SMTP+queueing@00:10:00
Jan 27 19:36:55 ubuntu sm-msp-queue[1378]: unable to qualify my own domain name (ubuntu) – using short name
Jan 27 19:40:01 ubuntu sm-msp-queue[1523]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 19:41:01 ubuntu sm-msp-queue[1523]: unable to qualify my own domain name (ubuntu) – using short name
Jan 27 20:00:01 ubuntu sm-msp-queue[18074]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 20:01:01 ubuntu sm-msp-queue[18074]: unable to qualify my own domain name (ubuntu) – using short name
Jan 27 20:20:01 ubuntu sm-msp-queue[19866]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 20:21:01 ubuntu sm-msp-queue[19866]: unable to qualify my own domain name (ubuntu) – using short name
Jan 27 20:40:01 ubuntu sm-msp-queue[20256]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 27 20:41:01 ubuntu sm-msp-queue[20256]: unable to qualify my own domain name (ubuntu) – using short name

Jan 28 14:22:11 ubuntu sm-mta[1140]: unable to qualify my own domain name (ubuntu) – using short name
Jan 28 14:22:11 ubuntu sm-mta[1325]: starting daemon (8.15.2): SMTP+queueing@00:10:00
Jan 28 14:22:13 ubuntu sm-msp-queue[1243]: unable to qualify my own domain name (ubuntu) – using short name
Jan 28 14:24:05 ubuntu sm-mta[1139]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 28 14:24:07 ubuntu sm-msp-queue[1243]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 28 14:25:05 ubuntu sm-mta[1139]: unable to qualify my own domain name (ubuntu) – using short name
Jan 28 14:25:05 ubuntu sm-mta[1325]: starting daemon (8.15.2): SMTP+queueing@00:10:00
Jan 28 14:25:07 ubuntu sm-msp-queue[1243]: unable to qualify my own domain name (ubuntu) – using short name
Jan 28 14:26:24 ubuntu sm-mta[1214]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 28 14:26:25 ubuntu sm-msp-queue[1312]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 28 14:27:24 ubuntu sm-mta[1214]: unable to qualify my own domain name (ubuntu) – using short name
Jan 28 14:27:24 ubuntu sm-mta[1476]: starting daemon (8.15.2): SMTP+queueing@00:10:00
Jan 28 14:27:25 ubuntu sm-msp-queue[1312]: unable to qualify my own domain name (ubuntu) – using short name

Jan 28 15:41:02 ubuntu sm-msp-queue[2398]: unable to qualify my own domain name (ubuntu) – using short name
Jan 28 15:49:03 ubuntu sm-mta[1215]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 28 15:49:04 ubuntu sm-msp-queue[1319]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 28 15:50:03 ubuntu sm-mta[1215]: unable to qualify my own domain name (ubuntu) – using short name
Jan 28 15:50:03 ubuntu sm-mta[1397]: starting daemon (8.15.2): SMTP+queueing@00:10:00

Jan 29 00:00:01 ubuntu sm-msp-queue[6605]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 00:01:01 ubuntu sm-msp-queue[6605]: unable to qualify my own domain name (ubuntu) – using short name

Jan 29 08:15:18 ubuntu sm-msp-queue[1318]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 08:16:17 ubuntu sm-mta[1217]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 08:16:17 ubuntu sm-mta[1477]: starting daemon (8.15.2): SMTP+queueing@00:10:00
Jan 29 08:16:18 ubuntu sm-msp-queue[1318]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 08:20:01 ubuntu sm-msp-queue[1536]: My unqualified host name (ubuntu) unknown; sleeping for retry

Jan 29 10:01:01 ubuntu sm-msp-queue[6739]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 10:20:01 ubuntu sm-msp-queue[6952]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 10:21:01 ubuntu sm-msp-queue[6952]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 10:32:59 ubuntu sendmail[6955]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 10:33:59 ubuntu sendmail[6955]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 10:33:59 ubuntu sendmail[6955]: HELOXxvJ006955: from=rtir, size=2107, class=-60, nrcpts=1, msgid=rt-4.4.4-6920-1580311979-1593.3-7-0@companyName.com, relay=root@localhost
Jan 29 10:34:00 ubuntu sm-mta[6957]: HELOXxLZ006957: from=rtir@ubuntu, size=2225, class=-60, nrcpts=1, msgid=rt-4.4.4-6920-1580311979-1593.3-7-0@companyName.com, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Jan 29 10:34:00 ubuntu sendmail[6955]: HELOXxvJ006955: to=user@companyname.com, ctladdr=rtir (1000/1000), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=140107, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (HELOXxLZ006957 Message accepted for delivery)
Jan 29 10:35:00 ubuntu sm-mta[6959]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:01:00, xdelay=00:01:00, mailer=esmtp, pri=230225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 10:37:17 ubuntu sm-mta[6960]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:03:17, xdelay=00:01:00, mailer=esmtp, pri=320225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 10:40:01 ubuntu sm-msp-queue[6981]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 10:41:01 ubuntu sm-msp-queue[6981]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 10:41:33 ubuntu sendmail[6984]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 10:42:33 ubuntu sendmail[6984]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 10:42:33 ubuntu sendmail[6984]: HELOgXkr006984: from=rtir, size=150631, class=-60, nrcpts=1, msgid=rt-4.4.4-6919-1580312493-378.3-4-0@companyName.com, relay=root@localhost
Jan 29 10:42:33 ubuntu sm-mta[6985]: HELOgXib006985: from=rtir@ubuntu, size=150749, class=-60, nrcpts=1, msgid=rt-4.4.4-6919-1580312493-378.3-4-0@companyName.com, proto=ESMTP, daemon=MTA-v4, relay=localhost [127.0.0.1]
Jan 29 10:42:33 ubuntu sendmail[6984]: HELOgXkr006984: to=user@companyname.com, ctladdr=rtir (1000/1000), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=288631, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (HELOgXib006985 Message accepted for delivery)
Jan 29 10:42:33 ubuntu sendmail[6988]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 10:43:33 ubuntu sm-mta[6987]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:01:00, xdelay=00:01:00, mailer=esmtp, pri=378749, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 10:44:18 ubuntu sendmail[7013]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 10:45:56 ubuntu sendmail[7038]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 10:47:17 ubuntu sm-mta[7063]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:13:17, xdelay=00:01:00, mailer=esmtp, pri=410225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 10:47:17 ubuntu sm-mta[7063]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:04:44, xdelay=00:00:00, mailer=esmtp, pri=468749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 10:57:17 ubuntu sm-mta[7064]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:23:17, xdelay=00:01:00, mailer=esmtp, pri=500225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 10:57:17 ubuntu sm-mta[7064]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:14:44, xdelay=00:00:00, mailer=esmtp, pri=558749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:00:01 ubuntu sm-msp-queue[7098]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 11:01:01 ubuntu sm-msp-queue[7098]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 11:07:17 ubuntu sm-mta[7100]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:33:17, xdelay=00:01:00, mailer=esmtp, pri=590225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:07:17 ubuntu sm-mta[7100]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:24:44, xdelay=00:00:00, mailer=esmtp, pri=648749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:17:17 ubuntu sm-mta[7114]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:43:17, xdelay=00:01:00, mailer=esmtp, pri=680225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:17:17 ubuntu sm-mta[7114]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:34:44, xdelay=00:00:00, mailer=esmtp, pri=738749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:20:01 ubuntu sm-msp-queue[7156]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 11:21:01 ubuntu sm-msp-queue[7156]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 11:27:17 ubuntu sm-mta[7192]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:53:17, xdelay=00:01:00, mailer=esmtp, pri=770225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:27:17 ubuntu sm-mta[7192]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:44:44, xdelay=00:00:00, mailer=esmtp, pri=828749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:37:20 ubuntu sm-mta[7457]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:03:20, xdelay=00:01:00, mailer=esmtp, pri=860225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:37:20 ubuntu sm-mta[7457]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=00:54:47, xdelay=00:00:00, mailer=esmtp, pri=918749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:40:01 ubuntu sm-msp-queue[7494]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 11:41:01 ubuntu sm-msp-queue[7494]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 11:44:55 ubuntu sendmail[7497]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 11:47:20 ubuntu sm-mta[7522]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:13:20, xdelay=00:01:00, mailer=esmtp, pri=950225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:47:20 ubuntu sm-mta[7522]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:04:47, xdelay=00:00:00, mailer=esmtp, pri=1008749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:57:20 ubuntu sm-mta[7572]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:23:20, xdelay=00:01:00, mailer=esmtp, pri=1040225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 11:57:20 ubuntu sm-mta[7572]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:14:47, xdelay=00:00:00, mailer=esmtp, pri=1098749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:00:01 ubuntu sm-msp-queue[7593]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 12:01:01 ubuntu sm-msp-queue[7593]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 12:07:20 ubuntu sm-mta[7595]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:33:20, xdelay=00:01:00, mailer=esmtp, pri=1130225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:07:20 ubuntu sm-mta[7595]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:24:47, xdelay=00:00:00, mailer=esmtp, pri=1188749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:17:20 ubuntu sm-mta[7596]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:43:20, xdelay=00:01:00, mailer=esmtp, pri=1220225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:17:20 ubuntu sm-mta[7596]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:34:47, xdelay=00:00:00, mailer=esmtp, pri=1278749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:20:01 ubuntu sm-msp-queue[7621]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 12:21:01 ubuntu sm-msp-queue[7621]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 12:27:21 ubuntu sm-mta[7623]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:53:21, xdelay=00:01:00, mailer=esmtp, pri=1310225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:27:21 ubuntu sm-mta[7623]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:44:48, xdelay=00:00:00, mailer=esmtp, pri=1368749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:37:20 ubuntu sm-mta[7624]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:03:20, xdelay=00:01:00, mailer=esmtp, pri=1400225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:37:20 ubuntu sm-mta[7624]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=01:54:47, xdelay=00:00:00, mailer=esmtp, pri=1458749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:40:01 ubuntu sm-msp-queue[7645]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 12:41:01 ubuntu sm-msp-queue[7645]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 12:47:20 ubuntu sm-mta[7647]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:13:20, xdelay=00:01:00, mailer=esmtp, pri=1490225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:47:20 ubuntu sm-mta[7647]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:04:47, xdelay=00:00:00, mailer=esmtp, pri=1548749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:57:20 ubuntu sm-mta[7648]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:23:20, xdelay=00:00:59, mailer=esmtp, pri=1580225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 12:57:20 ubuntu sm-mta[7648]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:14:47, xdelay=00:00:00, mailer=esmtp, pri=1638749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:00:01 ubuntu sm-msp-queue[7670]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 13:01:01 ubuntu sm-msp-queue[7670]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 13:07:20 ubuntu sm-mta[7672]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:33:20, xdelay=00:00:59, mailer=esmtp, pri=1670225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:07:20 ubuntu sm-mta[7672]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:24:47, xdelay=00:00:00, mailer=esmtp, pri=1728749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:17:20 ubuntu sm-mta[7676]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:43:20, xdelay=00:00:59, mailer=esmtp, pri=1760225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:17:20 ubuntu sm-mta[7676]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:34:47, xdelay=00:00:00, mailer=esmtp, pri=1818749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:20:01 ubuntu sm-msp-queue[7700]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 13:21:01 ubuntu sm-msp-queue[7700]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 13:27:20 ubuntu sm-mta[7702]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:53:20, xdelay=00:00:59, mailer=esmtp, pri=1850225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:27:20 ubuntu sm-mta[7702]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:44:47, xdelay=00:00:00, mailer=esmtp, pri=1908749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:37:20 ubuntu sm-mta[7703]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:03:20, xdelay=00:00:59, mailer=esmtp, pri=1940225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:37:20 ubuntu sm-mta[7703]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=02:54:47, xdelay=00:00:00, mailer=esmtp, pri=1998749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:40:01 ubuntu sm-msp-queue[7724]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 13:41:01 ubuntu sm-msp-queue[7724]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 13:47:21 ubuntu sm-mta[7726]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:13:21, xdelay=00:01:00, mailer=esmtp, pri=2030225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:47:21 ubuntu sm-mta[7726]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:04:48, xdelay=00:00:00, mailer=esmtp, pri=2088749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:57:25 ubuntu sm-mta[7728]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:23:25, xdelay=00:01:00, mailer=esmtp, pri=2120225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 13:57:25 ubuntu sm-mta[7728]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:14:52, xdelay=00:00:00, mailer=esmtp, pri=2178749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:00:01 ubuntu sm-msp-queue[7749]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 14:01:01 ubuntu sm-msp-queue[7749]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 14:07:25 ubuntu sm-mta[7752]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:33:25, xdelay=00:01:00, mailer=esmtp, pri=2210225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:07:25 ubuntu sm-mta[7752]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:24:52, xdelay=00:00:00, mailer=esmtp, pri=2268749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:17:25 ubuntu sm-mta[7753]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:43:25, xdelay=00:01:00, mailer=esmtp, pri=2300225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:17:25 ubuntu sm-mta[7753]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:34:52, xdelay=00:00:00, mailer=esmtp, pri=2358749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:20:01 ubuntu sm-msp-queue[7777]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 14:21:01 ubuntu sm-msp-queue[7777]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 14:27:25 ubuntu sm-mta[7779]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:53:25, xdelay=00:01:00, mailer=esmtp, pri=2390225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:27:25 ubuntu sm-mta[7779]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:44:52, xdelay=00:00:00, mailer=esmtp, pri=2448749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:37:29 ubuntu sm-mta[7780]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=04:03:29, xdelay=00:01:00, mailer=esmtp, pri=2480225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:37:29 ubuntu sm-mta[7780]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=03:54:56, xdelay=00:00:00, mailer=esmtp, pri=2538749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:40:01 ubuntu sm-msp-queue[7801]: My unqualified host name (ubuntu) unknown; sleeping for retry
Jan 29 14:41:01 ubuntu sm-msp-queue[7801]: unable to qualify my own domain name (ubuntu) – using short name
Jan 29 14:47:25 ubuntu sm-mta[7803]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=04:13:25, xdelay=00:01:00, mailer=esmtp, pri=2570225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:47:25 ubuntu sm-mta[7803]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=04:04:52, xdelay=00:00:00, mailer=esmtp, pri=2628749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:57:25 ubuntu sm-mta[7840]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=04:23:25, xdelay=00:01:00, mailer=esmtp, pri=2660225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 14:57:25 ubuntu sm-mta[7840]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=04:14:52, xdelay=00:00:00, mailer=esmtp, pri=2718749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 15:54:03 ubuntu postfix[10837]: Postfix is running with backwards-compatible default settings
Jan 29 15:54:03 ubuntu postfix[10837]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jan 29 15:54:03 ubuntu postfix[10837]: To disable backwards compatibility use “postconf compatibility_level=2” and “postfix reload”
Jan 29 15:54:04 ubuntu postfix/master[10882]: fatal: bind 127.0.0.1 port 25: Address already in use
Jan 29 15:59:52 ubuntu sm-mta[11022]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=05:25:52, xdelay=00:01:00, mailer=esmtp, pri=2750225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 15:59:52 ubuntu sm-mta[11022]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=05:17:19, xdelay=00:00:00, mailer=esmtp, pri=2808749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 16:02:27 ubuntu postfix[11274]: Postfix is running with backwards-compatible default settings
Jan 29 16:02:27 ubuntu postfix[11274]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jan 29 16:02:27 ubuntu postfix[11274]: To disable backwards compatibility use “postconf compatibility_level=2” and “postfix reload”
Jan 29 16:02:28 ubuntu postfix/master[11311]: fatal: bind 127.0.0.1 port 25: Address already in use
Jan 29 16:04:03 ubuntu postfix/postdrop[11323]: warning: unable to look up public/pickup: No such file or directory

Jan 29 16:07:24 ubuntu postfix/postdrop[11342]: warning: unable to look up public/pickup: No such file or directory
Jan 29 16:09:57 ubuntu sm-mta[11343]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=05:35:57, xdelay=00:01:00, mailer=esmtp, pri=2840225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 16:09:57 ubuntu sm-mta[11343]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=05:27:24, xdelay=00:00:00, mailer=esmtp, pri=2898749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 16:16:44 ubuntu postfix[11677]: Postfix is running with backwards-compatible default settings
Jan 29 16:16:44 ubuntu postfix[11677]: See http://www.postfix.org/COMPATIBILITY_README.html for details
Jan 29 16:16:44 ubuntu postfix[11677]: To disable backwards compatibility use “postconf compatibility_level=2” and “postfix reload”
Jan 29 16:16:45 ubuntu postfix/master[11714]: fatal: bind 127.0.0.1 port 25: Address already in use
Jan 29 16:16:51 ubuntu postfix/postdrop[11725]: warning: unable to look up public/pickup: No such file or directory
Jan 29 16:17:26 ubuntu postfix/postdrop[11727]: warning: unable to look up public/pickup: No such file or directory
Jan 29 16:19:57 ubuntu sm-mta[11732]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=05:45:57, xdelay=00:01:00, mailer=esmtp, pri=2930225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 16:19:57 ubuntu sm-mta[11732]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=05:37:24, xdelay=00:00:00, mailer=esmtp, pri=2988749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 16:29:57 ubuntu sm-mta[11734]: HELOXxLZ006957: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=05:55:57, xdelay=00:01:00, mailer=esmtp, pri=3020225, relay=companyName.com. [199.00.00.153], dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.
Jan 29 16:29:57 ubuntu sm-mta[11734]: HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=05:47:24, xdelay=00:00:00, mailer=esmtp, pri=3078749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.

My unqualified host name (ubuntu) unknown

Seems you should set your host name

HELOgXib006985: to=user@companyname.com, ctladdr=rtir@ubuntu (1000/1000), delay=05:47:24, xdelay=00:00:00, mailer=esmtp, pri=3078749, relay=companyName.com., dsn=4.0.0, stat=Deferred: Connection reset by companyName.com.

Does this mean the external server is rejecting the incoming email?

Here -
I’m going to revert to my last snapshot and try the install again now that I have a little more understanding.
I will send a test, and then show the logs.
Expect my reply within the next 5-10 minutes,
Any tool in specific I should send a test email with from the command line?

I’d follow the tutorial, there is a testing section

Do I need the administrator mail accounts email/password?
Or can I use any mail account within the domain

** Do I actually need to create an email address **
or can I send from
testme123@mydomain.com to > myemailaddress@mydomain.com

I have success.
I needed to add the subnet of the mail server, as well as a few other destination points for the relay.
I was lucky enough to find that a coworker in the IT department spent a week on configuring PostFix to work for a kali machine running vuln/scans.

,
What’s next this is great. I feel great.!!!

additional information:
See my last comment: everything is working.

Sendmail seems to clog port 25 too, is there any way to rid this machine of sendmail without damaging anything?

in specific
killall sendmail-mta
seemed to send a bunch of test mail I Was waiting on.

What happens when you try to send email using RT now?