MoonPoint Support Logo

 

Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
November
Sun Mon Tue Wed Thu Fri Sat
         
22 23
24 25 26 27 28 29 30
2024
Months
NovDec


Sat, Aug 31, 2024 7:44 pm

Switching to the sent folder in Mutt

If you are in the Mutt email program and wish to switch to another folder, such as the one containing your sent email, you can hit the c key, which is shorthand for ChDir, which will provide the prompt Open mailbox ('?' for list):. You can type the name of the folder, e.g., sent to change the currently displayed folder. If you wish to go immediately to the sent folder when opening mutt you can use the -f option, i.e., mutt -f sent.

[/network/email/clients/mutt] permanent link

Tue, Apr 02, 2024 8:45 pm

Blocking email from an envelope "from" address with Sendmail

For a mail server running Sendmail email server software, if you wish to block email from a particular "from" address to any email address on the server, you can include the address you wish to block in the /etc/mail/access file. E.g., if you wished to block email from the address spammer@example.com, you can include the following line in that file:

# Block envelope "from" address of spammers
spammer@example.com                     REJECT

Any line beginning with a # is treated as a comment, so the first line above isn't needed, but adding a comment line may help you recognize why the reject statement is in the file. After you have added the line, you need to regenerate the /etc/mail/access.db file, or create a new one if there isn't already one present, using the command shown below (you don't need to restart sendmail):

# makemap hash /etc/mail/access </etc/mail/access
#

This will only work if you have a FEATURE(`access_db')dnl line in /etc/mail/sendmail.mc. E.g., a line like the one below:

FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl

If you don't have such a line, you will need to add it. If the line begins with dnl, you will need to remove the dnl at the beginning of the line, since that "comments out" the line.

[ More Info ]

[/network/email/sendmail] permanent link

Tue, Mar 12, 2024 11:35 pm

Renewing a Let's Encrypt Security certificate for Dovecot

A message appeared on a user's PC indicating the security certificate had expired for moonpoint.com today. The message came from Microsoft Outlook on her system. But when I checked the status of the system's security certificate in a browser by visiting moonpoint.com in the browser, it was still showing as valid until Friday, May 17, 2024 at 12:02:51 AM. I thought the email server software, Dovecot, running on the server was using the same security certificate as the Apache webserver. When I viewed the SSLCertificateFile and SSLCertificateChainFile lines in the Apache configuration file, /etc/httpd/conf/httpd.conf, I saw they were pointing to the following .pem files (.pem stands for "Privacy-Enhanced Mail" and a .pem file holds a security certificate).

SSLCertificateFile /etc/letsencrypt/live/support.moonpoint.com-0001/cert.pem
SSLCertificateKeyFile /etc/letsencrypt/live/support.moonpoint.com-0001/privkey.pem
Include /etc/letsencrypt/options-ssl-apache.conf
SSLCertificateChainFile /etc/letsencrypt/live/support.moonpoint.com-0001/chain.pem

When I checked the expiration of that security certificate, I saw it was valid until May 17.

# openssl x509 -enddate -noout -in /etc/letsencrypt/live/support.moonpoint.com-0001/cert.pem
notAfter=May 17 04:02:51 2024 GMT
#

You can determine the location of the .pem file used by Dovecot by looking for the ssl_cert variable in /etc/dovecot/conf.d/10-ssl.conf.

[ More Info ]

[/network/email/dovecot] permanent link

Mon, May 22, 2023 10:05 pm

Relaying Denied by Sendmail

A family member reported she was no longer able to send email via a Sendmail service I have running on a CentOS Linux system. She sent me a screenshot of the message she received when attempting to send a message. I saw a "Server error: '550 5.7.1 ... Relaying denied'" message. At first, I thought that a technician from her Internet Service Provider (ISP) might have changed her Microsoft Outlook settings when he upgraded her network equipment recently, but then I remembered I was restricting email relaying on the system by IP address and realized her IP address would have changed when the technician upgraded her network equipment. So I had her visit whatismyipaddress.com and provide me with the public IPv4 IP address it showed for her. I then replaced her prior IP address in /etc/mail/access. The format for an entry to allow relaying from a particular IP address is as shown below.

# Jane Doe
192.168.71.77                           RELAY

You can include a comment to indicate who the IP address is associated with by prefixing the comment with a pound sign. The IP address should be followed by the word "RELAY" (you can put tabs in between the IP address and the word, if you like).

After changing the IP address, I rebuilt the access database with the makemap command. I then restarted Sendmail

# makemap hash /etc/mail/access </etc/mail/access
# service sendmail restart
Redirecting to /bin/systemctl restart  sendmail.service
#

I was then able to receive a test message she sent me. After updating the IP address, I may only have needed to restart Sendmail without running the makemap command first as I found the following at 19.3.2. Sendmail on a Red Hat website in reference to running the make all -C /etc/mail/ command (CentOS is derived from Red Hat Enterprise Linux):

All other generated files in /etc/mail (db files) will be regenerated if needed. The old makemap commands are still usable. The make command is automatically used whenever you start or restart the sendmail service.

[/network/email/sendmail] permanent link

Fri, Jun 26, 2020 6:51 pm

Configuring Outlook 2010 to check AOL email

To configure Outlook 2010 to check an AOL email account, take the following steps.
  1. Open Outlook and click on Next at the startup window.
  2. When prompted as to whether you would like to configure an E-mail account, maintain the default option of "yes" and click on Next.
  3. At the Add New Account window, choose "Manually configure server settings or additional server types" and then click on Next.
  4. At the Choose Service window, maintain the default option of "Internet E-mail" and click on Next.
  5. At the Internet E-mail Settings window, you will need to provide the relevant information for your AOL email account. In the username field, include "@aol.com" as part of the user name, e.g., jdoe@aol.com. You will also need to choose whether you will access your AOL email account using the Post Office Protocol (POP) or the Internet Message Access Protocol (IMAP). The default option is POP3, version 3 of POP. With that option, the email in your inbox will be downloaded to Outbox and deleted from the server after a specified period of time; by default Outlook will leave it on the server for 14 days. If you log into the AOL website to check your email after you've downloaded it with Outlook and delete a message while viewing your email in a browser, it won't be available to download with Outlook, if you subsequently check your AOL email with Outlook, although that may not matter to you. A disadvantage of using the POP protocol is that it only downloads email from the inbox, not any other folders you may have created to hold specific email messages. Also, by default email is deleted from the email server after you download it to Outlook, so email you've already downloaded won't be visible to you if you check your email through a web browser at a later time—by default Outlook will leave the email there for 14 days, though. You can change that setting, though, once you've filled in account information by clicking on the More Settings button, then clicking on the Advanced tab and choosing how long a copy of messages should be left on the server.

    If you select IMAP for the account type, you can view email in other folders besides the inbox and Outlook's view of the email in your account is synchronized with the email messages maintained on the AOL email server, so you can check with a web browser or with Outlook and see the same messages in your email folders. You could also set up Outlook on another system and select IMAP there as well to see the same email messages on a separate system where you are using Outlook.

    The information you should put in the incoming mail server and outgoing mail server fields is as follows:

    ProtocolServerPort Settings
    POP3Incoming mail server (POP3): pop.aol.com
    Outgoing mail server (SMTP): smtp.aol.com
    POP3: 995-SSL
    SMTP: 465-SSL
    IMAPIncoming mail server (IMAP): imap.aol.com
    Outgoing mail server (SMTP): smtp.aol.com
    IMAP: 993-SSL
    SMTP: 465-SSL

    Put a check mark in the "Remember password" check box, if you don't want to have to enter your password every time you open Outlook to check your email.

[ More Info ]

[/network/email/AOL] permanent link

Mon, Apr 20, 2020 10:45 pm

Removing an email address from a SparkPost suppression list

I use SparkPost to distribute a newsletter by email for an organization I support. A member of the organization reported to me that she has not been receiving email copies of the organization's newsletter, so I logged into the SparkPost account after this month's newsletter was sent and clicked on Events on the Dashboard, selected "Last 7 Days" in the Events Search date range selection field and then put the member's email address in the "Filter by recipient email address" field and hit Enter. I saw an "Injection" and a "Bounce" event whereas I would see an "Injection" and a "Delivery" event for email successfully sent to a recipient. When I clicked on the View Details button, I found that the email sent to the member bounced with SparkPost listing the reason as "554 5.7.1 [internal] recipient address was suppressed due to customer policy." At the SparkPost page on the problem, 554 5.7.1 — Recipient address was suppressed due to customer policy, I saw the possible reasons for that bounce message appear listed as those below:

  1. The address was invalid (address does not exist)
  2. The user clicked the list-unsubscribe header
  3. The user clicked one of your emails and flagged it as SPAM. This FBL (FeedBack Loop) event should add that email address to your Suppression List.

[ More Info ]

[/network/email/sparkpost] permanent link

Fri, Oct 05, 2018 9:39 pm

Checking port 465 connectivity

I needed to check on whether a system was functioning as a mail server listening on the Simple Mail Transfer Protocol Secure (SMTPS) port, TCP port 465. One way to check is to attempt to establish a telnet connection to that port. E.g.:

$ telnet 192.168.248.91 465
Trying 192.168.248.91...
Connected to esa.example.com
Escape character is '^]'.
^C
^CConnection closed by foreign host.
$

If you see a "connected to" message that indicates the system is listening on that port and you can terminate the connection by hitting Ctrl-C a couple of times. But you can also use an OpenSSL command as shown below to test SMTPS connectivity on TCP port 465:

$ openssl s_client -connect 192.168.248.91:465 -quiet
depth=0 /OU=Zimbra Collaboration Server/CN=esa.example.com
verify error:num=20:unable to get local issuer certificate
verify return:1
depth=0 /OU=Zimbra Collaboration Server/CN=esa.example.com
verify error:num=27:certificate not trusted
verify return:1
depth=0 /OU=Zimbra Collaboration Server/CN=esa.example.com
verify error:num=21:unable to verify the first certificate
verify return:1
220 esa.example.com ESMTP Postfix
quit
221 2.0.0 Bye
$

If you leave the -quiet off the end of the command, you can see additional information about the certificate on the email server.

Related articles:

  1. Using the openssl command to troubleshoot POP3S

[/network/email] permanent link

Fri, Jun 01, 2018 10:11 pm

Modifying the "from" domain of a message with sendmail

A user sends a monthly email newsletter to a distribution list on an email server I maintain that uses sendmail. He sends the message to an email alias on the system where sendmail converts the alias to all of the email addresses in the mailing list and the sends it out through a smart host to be delivered to all of the recipients of the newsletter. The sender sends the message from his verizon.net address and I needed to convert the "from" address from a verizon.net email address to a local email address on the server running sendmail. To do so, I placed the following lines at the end of /etc/mail/sendmail.mc. For the example below, I use the example.com domain as the local domain name for the server.

MASQUERADE_DOMAIN(`verizon.net')dnl
MASQUERADE_AS(`example.com')dnl

Note: the "dnl" at the end of each line has the letter "l", not the number "1" at the end of the line. And a backtick, i.e., `, is used before "verizon.net" while a single quote is used after it.

[ More Info ]

[/network/email/sendmail] permanent link

Wed, May 23, 2018 10:53 pm

Dovecot restart

A user reported that she was unable to check her email today; she had also reported the problem yesterday. When I checked Sendmail, which would handle her outgoing email, by using Telnet to connect to the well-known port for Simple Mail Transfer Protocol (SMTP) on the server with telnet mail.example.com 25, I saw the Sendmail banner as expected, so I presumed her problem was likely with Dovecot, the software on the system that would allow her to receive her incoming email. I tried connecting to port 110, the well-known port for Post Office Protocol version 3 (POP3) connections using Telnet. When I saw the "Connected to" and "Escape character is" messages, I entered the POP3 user command followed by the user's name, but I would shortly thereafter see a "Connection closed" message every time I tried the connection with Telnet. I never saw the "Dovecot ready" prompt appear.

# telnet 127.0.0.1 110
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
user nell
Connection closed by foreign host.
You have new mail in /var/spool/mail/root
#

[ More Info ]

[/network/email/dovecot] permanent link

Fri, Mar 30, 2018 10:23 pm

Cloudmark CSI IP Reputation Remediation

I manage an email server that uses an Atlantic Broadband SMTP server as a smart host. I maintain a mailing list on the server that currently has about 1,300 email addresses. Each month someone sends a monthly newsletter to the email addresses in that list; the people associated with those addresses are all members of a retirees organization and have all indicated they wish to receive that organization's newsletter. Usually, the newsletter is transmitted without problems, but occasionally I will find that email transmitted from the server is silently discarded with no bounced emai indicating why that is occurring. Though that doesn't occur often, when it occurs, it usually occurs when the newsletter is sent. When the problem occurs, as it did yesterday, I have to request that the IP address of my server be unblocked. Initially, I would call the ISP's phone support number, i.e, an Atlantic Broadband support number, but they would in turn have to contact their email service provider, since the email service they provide is outsourced to Echo Labs as I found from examining email headers - see Email sent via an Atlantic Broadband SMTP server not being delivered. But I found that I could get the block removed more quickly if I submitted a request through Cloudmark, an anti-spam company co-founded by Vipul Ved Prakash and Napster's co-founder Jordan Ritter, which provides an anti-spam service used by Echo Labs.

[ More Info ]

[/network/email/spam/blocklists] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo