Disable Linux Mint automatic login

Linux Mint during installation offers the option of enabling system start with automatic login. If the password entry is to be restored later, as with Ubuntu 10.04, the option can no longer be found in the settings. This post show how to re-enabling the user login with password entry under Linux Mint 20 Ulyana.

It was necessary to switch off the automatic login after it was found that the email client Geary did not save the passwords of the accounts, these had to be re-entered after each restart.

Linux email client Geary

Since Linux Mint 19 Tessa Cinnamon there has the option Automatic login in the Control Panel – Login window. The setting can now be made with an text editor, open a terminal by hit CTRL + ALT + T and enter the following command:

~$ sudo vi /etc/lightdm/lightdm.conf

and remove this lines:


 if you are not familiar with vim, your may use nano or xed.

After restarting and logging in with a password, the key management opens in the background, which enables Geary to save the passwords in the seahorse key management.

Linux Mint 20 Cinnamon modify lightdm.conf to change autologin
Linux Mint 20 Cinnamon – disable autologin
modify lightdm.conf to change autologin
Linux Mint Terminal: cat /etc/lightdm/lightdm.conf

Another possibility to switch off the automatic user login is to remove the user in the Username field in the User section – System Settings – Login Window.

Linux Mint control panel logon setting
Anmeldefenster – Benutzer – Benutzername muss leer sein.

Without automatic login, the Username field must be empty.

How to Send Mail use cURL

Sending email over an SMTP gateway using cURL

cURL in combination with command-line options, sends an email to a recipient. Originally the name cURL meant “see URL” and was later reinterpreted to the current Backronym cURL.

The basic command for sending an email using cURL.

$ curl smtp://mail.server.com --mail-from sender@domain.com --mail-rcpt
receiver@domain.com --upload-file email.txt

Example: cURL using SMTP in the terminal emulator:

$ curl -v smtp://mail.server.com/email.com --mail-from don@email.com --mail-rcpt rosa@email.com --upload-file email.txt

The following is the output in the terminal:

% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying
* Connected to mail.server.com ( port 25 (#0)
< 220 mail.server.com ESMTP
> EHLO email.com
< 250-mail.server.com
< 250-SIZE 22000000
< 250-ETRN
< 250-8BITMIME
< 250 DSN
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0> MAIL FROM:<don@email.com> SIZE=355
< 250 2.1.0 Ok
> RCPT TO:<rosa@email.com>
< 250 2.1.5 Ok
< 354 End data with <CR><LF>.<CR><LF>
} [355 bytes data]
* We are completely uploaded and fine
< 250 2.0.0 Ok: queued as B744B28008
100   355    0     0  100   355      0    355  0:00:01 --:--:--  0:00:01  1334
* Connection #0 to host mail.server.com left intact

Using -v parameter to generates verbose output.

The file email.txt is uploaded and sent by cURL to the SMTP relay.

From: Don <don@email.com>
To: Rosa <rosa@email.com>
Subject: This is an example with cURL SMTP
Date: Sam, Jan 19, 2019 12:50:16 PM

Hello Rosa,
Welcome to cURL email, today is a beautiful day.

The content of email.txt take From, To, Subject, Date as data fields that serves the Simple Mail Transfer Protocol.

  The Mail Transfer Agent (MTA) must be configured to accept mail from the host that uses cURL on it, if it is not an MTA itself, a directive must be configured with smtpd_sender_restrictions, e.g. smtpd_client_restrictions.