1

I have set-up sendmail on my Ubuntu server but it takes ages to send an email. It doesn't actually sent the email but it takes about 20 seconds.

Try it here: http://genyx.co.uk/form/index.php

You can tell if its sent because it says yay or nay at the top. You don't have to enter any information, just click submit.

I installed sendmail with the default configuration.

Can anyone help?

Adam
  • 349

2 Answers2

1

According to the log files that you posted the delay problem is this:

Mar 6 13:50:36 GenyxPrimary sendmail[8384]: My unqualified host name (GenyxPrimary) unknown; sleeping for retry

Edit /etc/mail/sendmail.mc and add at the bottom the following two lines:

LOCAL_CONFIG
Djgenyx.co.uk

Next see this answer in order to make sure that mail gets delivered properly to where it has to. Do not forget to run sudo sendmailconfig after completing editing sendmail.mc.

Right now it seems that mail gets accepted by your email provider:

Mar 6 13:55:51 GenyxPrimary sm-mta[9354]: q26DtnqT009352: to=, ctladdr= (33/33), delay=00:00:02, xdelay=00:00:02, mailer=esmtp, pri=120377, relay=mx1.emailsrvr.com. [98.129.184.131], dsn=2.0.0, stat=Sent (Ok: queued as 7A/C9-03931-657165F4)

so you have to check whether it is tagged or rejected as spam.

adamo
  • 7,045
0

Let's call sendmail a command line tool and Sendmail MTA as big sendmail

I guess you have installed big sendmail (that also provides sendmail). It's the most ancient MTA. But probably it can be used for your need if you configure it properly. But I would recommend install postfix or ssmtp (both provides sendmail).