Admin panel
What this does: these tools control the mail server for the whole machine: how big a message may be, how spam is handled, what happens to mail that cannot be delivered, and where a lost message went.
When you need it: when a customer says mail is not arriving or not leaving, when spam gets through, or when you want to set limits for every mailbox on the server. Customers make their own mailboxes in their own panel; this group is for you, the server's administrator.
Words used on this page:
- The installer is the command you ran once to put freePanel on the server (see Getting started). Some parts are only set up when you give the installer an extra option, such as
--mail. To add such a part later, run the installer again with that option. - When a page says a program is not running, open Services and status > Services, find the program in the list and click its Start or Restart button.
- The mail server is the program that sends and receives mail for every domain on this server. freePanel uses Postfix to move mail and Dovecot to keep mailboxes.
- The mail queue is the mail server's waiting room: messages wait there until they are delivered.
- Port 25 is the door other mail servers use to hand mail to this server.
- IMAP and POP are the two ways a mail program, such as Outlook or Thunderbird, reads mail. IMAP keeps mail on the server; POP downloads it.
- SPF, DKIM and DMARC are three DNS records that prove mail from a domain really comes from this server. Without them, other servers often treat the mail as spam.
- sendmail is a command programs and website scripts use to send mail from the server itself.
- A range of addresses is written with a slash, such as
198.51.100.0/24. The number after the slash says how wide it is: the smaller the number, the more addresses./24is 256 addresses;/16is 65,536;/8is about 16 million. IPv4 addresses look like198.51.100.7; IPv6 addresses are the longer kind, like2001:db8::25.
Mail server settings
What this does: sets the limits the mail server keeps for every message: the largest message, how many people one message may be sent to, and how many days an undeliverable message keeps trying. It also lets customers use this server as a backup mail server.
When you need it: when customers need to send bigger attachments, or when you want to keep mass mailings small.
Where: Email > Mail server settings
To change the mail limits
- Open Email > Mail server settings. The card What the mail server runs now shows the limits in use, for example "9.8 MB (the mail server’s own)".
- In the card Limits, type a number in the box you want to change:
- Largest message (MB): from 1 to 200.
- Recipients per message: from 1 to 1,000.
- Days a message waits in the queue: from 1 to 30.
- Leave a box empty to use the mail server's own limit.
- Click Save limits. You see Saved. The mail server runs these limits now.

To let customers use this server as a backup mail server
A backup mail server holds a domain's mail while its main mail server, somewhere else, is down, and passes it on later.
- In the card Backup mail servers, read the two paragraphs; they explain what it costs this server. (The Mail routing page they mention is in the customer's own panel. MiB is a unit of size: 512 MiB is about half a gigabyte.)
- Tick Let customers use this server as a backup mail server.
- Click Save backup choice. A question appears; click Yes, turn it on.
- You see "Saved. Customers can now choose backup mail routing for their domains."
If something goes wrong
- If you see "Postfix, the mail server, is not installed on this server, so nothing here can take effect yet.", run the installer again with
--mail. - If you see "Postfix, the mail server, is installed but is not running.", start it on Services and status > Services.
- If you see "(field): (saved) is saved, but the mail server runs (runs).", something else on the server sets that value in the mail server's configuration. Ask whoever changed it by hand.
- If a customer cannot attach a big file in webmail, that limit is set by PHP, not here. Raise Largest upload on Web server and PHP > PHP settings.
IMAP and POP settings
What this does: sets how many connections one address may open to read one mailbox, how long an idle connection is kept, and whether POP is offered at all.
When you need it: when an office with many people behind one internet address gets "too many connections" errors, or when you want to switch off POP.
Where: Email > IMAP and POP settings
To change the connection limits
- Open Email > IMAP and POP settings. These settings apply to every mailbox on the server.
- In IMAP connections from one address, per mailbox, type a number from 1 to 1,000. Empty means 10.
- Do the same for POP connections from one address, per mailbox.
- In Idle time before an IMAP connection is checked, in minutes, type a number from 1 to 30. Empty means 2.
- To stop offering POP, tick Turn POP off. Mail programs set up for POP then stop working until they are moved to IMAP.
- Click Save. You see Saved. The server now uses these settings.

If something goes wrong
- If you see "(field): enter a whole number from (min) to (max).", type a number in the range shown under the box.
- If you see "POP is not installed on this server, so only IMAP is offered.", there is nothing to switch for POP.
Mail queue
What this does: lists the mail waiting to go out, lets you read a waiting message, try it again now, park it (set it aside so it is not tried), release it, or delete it for good.
When you need it: when mail is late, when a customer's script has sent a flood of mail, or when another server keeps refusing messages.
Where: Email > Mail queue
To look at the waiting mail
- Open Email > Mail queue. The card Queues shows tabs, each with a count in brackets: All, Waiting to retry, Sending now, Arriving, Just submitted and Parked. Just submitted and Arriving are new messages the mail server has not sorted yet; they usually move on within seconds.
- Click a tab to see only those messages.
- To find one message, type part of the sender, the recipient or the message id in Find a message and click Find.
- The table Messages lists each message: when it arrived, who it is from and to, and Why it is waiting (what the other server said).
- Click View to read the message's headers. Click Show the message text to see the text too.

To try waiting mail again now
- For one message, click Try again in its row. You see "1 message is being tried again."
- For every waiting message, click Try all waiting mail now. You see "Every message waiting to retry is being tried now."
To remove a message for good
A message must be parked before it can be deleted, so nothing is removed by accident.
- In the message's row, click Park. You see "1 message is parked."
- Click the Parked tab.
- In the message's row, click Delete.
- A question asks "Delete (id) for good? It can’t be brought back." Click Delete for good.
To release a parked message
- Click the Parked tab.
- In the message's row, click Release. You see "1 message is released and will be tried again."
To act on many messages at once, tick the box at the start of each row (or the box in the table's heading to select the whole page). The line above the table changes from None selected to, for example, 2 selected; then click Try again, Park, Requeue, Release or Delete on that line. Requeue hands a message back to the mail server to be read again from the start, for example after you changed a mail setting; it gets a new id. Try again only retries delivery.
If something goes wrong
- If you see "The mail server is not running, so nothing is being sent.", start the mail server on Services and status > Services. Queued mail stays and goes out once it runs.
- If you see "(n) messages are not parked, so they were left alone: park them first.", park them, then delete them.
- If the same domain fills the queue with "Delayed" reasons, the other server is refusing for now. Read Why it is waiting; it often says the other server is busy or thinks this server sends spam. Check Deliverability overview.
Held mail
What this does: counts the mail that programs on this server sent with the sendmail command and that was refused and set aside, and says where it is kept.
When you need it: when a customer's website form or script says it sent mail but nothing arrived. If the server's sending checks refused it, it ends up here instead of being retried forever.
Where: Email > Held mail
To see what is held
- Open Email > Held mail.
- The page says how many messages are held, from how many users, for example "16 messages are held, from 3 users."
- The table lists each user under Sent by, with the number of Messages.
- Click Look again to count again. You see "The counts are up to date."

Nothing is sent or removed from this page. The messages stay in the folder the page names until you remove them, which needs the server's command line. A row such as "A user with no name (ID 1005)" is a program that ran under a user number with no login name, often a deleted account's leftover job.
If something goes wrong
- If one account has many held messages, its script is probably sending mail the server refuses, such as to too many people at once. Ask the customer to check their script, and look at Spam settings for the hourly limit.
- If you see "No mail is held.", nothing was refused.
Mail delivery reports
What this does: searches the mail log for every domain on the server and follows a message: whether it was delivered, is waiting or came back, what the other server said, and who sent it.
When you need it: when a customer says "I sent a message to someone and they never got it", or "someone sent me mail and it never arrived".
Where: Email > Mail delivery reports
To find a message
- Open Email > Mail delivery reports.
- In Address, domain, IP address, queue ID or Message-ID, type at least 3 characters (a queue ID is the short code this server gives a message, such as
4D7F2A9C10; a Message-ID is the longer name the sender's program gives it; both show in a message's headers), for example the recipient's addressann@partner.example.net. Leave it empty to list the newest messages. - In Look back, choose how far back to search, from The last hour to The last 14 days, or A range of dates.
- If you like, choose a Status and how many to Show up to.
- Click Search. You see "Searching the mail log. This can take up to 20 seconds."
- Each result shows when the message came in, who it was for, and for each recipient whether it was Delivered, Delayed, Bounced or Gave up, with The server said: and the other server's own answer.

The box What the statuses mean explains each status in plain words.
If something goes wrong
- If you see "No message was found.", check the spelling, search for a shorter part, or look further back. The log keeps a limited time.
- If you see "Enter at least 3 characters, or leave the search empty to list the newest messages.", type a longer search.
- If a message shows Bounced, read The server said: It usually says why, such as "mailbox does not exist". Tell the customer.
- If a message shows Delayed, the server will try again by itself. You can also try it now in Email > Mail queue.
Spam settings
What this does: sets the two spam scores every account uses unless it has chosen its own, and an hourly limit on how many people one account may send mail to.
When you need it: when too much spam gets through, when good mail is marked as spam, or to stop a hacked account from sending thousands of messages.
Where: Email > Spam settings
Every incoming message gets a spam score: the higher the number, the more it looks like spam. Scores may have one decimal place, such as 6.5.
To change the spam scores
- Open Email > Spam settings. The card The server’s spam scores shows the scores in use, for example "Mark as spam at 6" and "Reject at 15".
- In the card Default scores, type a number in Mark as spam at. Mail with this score or more is marked as spam. Marked mail still arrives, but in the mailbox's spam or Junk folder instead of the inbox, with the line
X-Spam-Status: Yesadded and the mailbox's own filters, auto-replies and forwarding skipped. - Type a number in Reject at. Mail with this score or more is refused. It must be higher than the first.
- Click Save scores. You see "Saved. Accounts that follow the server now mark at (mark) and reject at (reject)."

Accounts that chose their own scores, or turned scoring off, are left as they are.
To limit outgoing mail
- In the card Outgoing mail limit (below the scores; it shows only on servers whose mail server supports the limit), type a number in Recipients per hour, for each account. Leave it empty for no limit.
- Click Save limit. You see "Saved. Each account may name (n) recipients an hour unless it has a limit of its own."
If something goes wrong
- If you see "Spam filtering is not set up on this server.", run the installer again with
--spam. - If you see "The mark score ((mark)) must be lower than the reject score ((reject)).", lower the first number or raise the second.
- If good mail is refused, raise Reject at a little, for example from 15 to 18.
Deliverability overview
What this does: checks every domain on the server for its SPF, DKIM and DMARC records, and repairs the ones that are missing or wrong.
When you need it: when customers' mail lands in spam folders at Gmail or Outlook, or after you move many domains to this server.
Where: Email > Deliverability overview
To check and repair domains
- Open Email > Deliverability overview.
- In Account, type an account's name to check only its domains, or leave it empty for every account.
- Tick Only domains with a problem to hide the ones that are fine.
- Click Show domains. The list shows each domain with SPF, DKIM and DMARC marked in order, missing or wrong. Signing mail means the server already signs that domain's outgoing mail with DKIM.
- Click Choose the ones with a problem, or tick domains yourself. (Or click Repair the first 50 with a problem to do it in one go.)
- Click Repair the chosen domains. A question asks you to confirm; click Yes, repair.
- You see "Repaired (fixed), (unchanged) needed nothing, (failed) could not be repaired."

If something goes wrong
- If a domain says "Can’t be read", its DNS zone (the list of DNS records this server keeps for the domain) could not be read. Open it under DNS > DNS zones.
- If you see "There may be more domains with a problem. Repair again to do the next ones.", click the repair button again.
- If the records are in order but mail still goes to spam, the domain's DNS may be hosted somewhere else, for example at the company where the domain was bought. Check DNS > DNS lookup: if the name servers it shows are not this server's, add the same records there by hand.
Mail troubleshooter
What this does: shows, step by step, what the server would do with mail sent to one address: which mailbox, forwarder or other server it goes to. It sends nothing.
When you need it: when mail to an address goes somewhere unexpected, or seems to disappear.
Where: Email > Mail troubleshooter
To follow an address
- Open Email > Mail troubleshooter.
- In Email address, type the full address, for example
info@example.com. - Click Follow the address.
- The card Where it goes shows What the server does, in order, and Where each copy ends: a Mailbox, Another server, Refused, Discarded, or a Loop.

If something goes wrong
- If you see "Enter a full email address.", include the part before and after the @.
- If you see "Held until the domain is proven", the domain must first prove it belongs to the customer. See DNS > Domain proof.
- If the result says Loop, two forwarders send mail to each other. Remove one of them in the customer's panel.
Mailbox storage format
What this does: converts an account's mailboxes between two ways of storing mail on disk: Maildir (one file per message) and mdbox (many messages per file). Nothing changes for the people who read the mail.
When you need it: when an account has very large mailboxes and the server has trouble with the number of files. Most servers never need it.
Where: Email > Mailbox storage format
To convert an account's mailboxes
- Open Email > Mailbox storage format. The card Storage formats explains the two formats.
- In Account, type the account's user name, for example
site1. - Click Show mailboxes. The card Choose mailboxes lists them with their current format.
- In Convert to, choose Maildir or mdbox.
- Click Check next to one mailbox, or Check converting all of them.
- The card Before converting shows how many messages will be copied and how much space it needs. In Keep the old copy for, type the number of days to keep the old copy (0 keeps it until you remove it).
- Click Convert, then Convert now. You see "The conversion started. It runs on the server, so you can close this page."
- The card The latest conversion shows each mailbox moving from Copying to Checking, Switching and Done.

Until the old copy is removed, the mail takes twice the space. Remove it under Old copies with Remove when you are happy.
If something goes wrong
- If you see "Email isn’t set up on this server, so there are no mailboxes to convert.", mail was not installed.
- If you see "A conversion is running. Another one can start when it ends.", wait for it to finish.
- If a mailbox shows Failed, its mail was not switched and stays as it was. Try again later.
Repair mail folders
What this does: puts right the owner and the permissions of an account's mail folder, so the mail server can read it again.
When you need it: after a restore or a copy made by hand as root, when a customer's mailbox suddenly shows no mail or cannot receive mail.
Where: Email > Repair mail folders
To repair an account's mail folder
- Open Email > Repair mail folders.
- In Account, choose the account.
- Click Look first. You see "Working through the folder. This can take a minute." and then What would change for *(name)*. Nothing is changed yet.
- If something needs repair, click Repair *(name)*.
- A question asks you to confirm. Click Yes, repair it. You then see What was done for *(name)*.

Links and files that belong to someone else are left alone.
If something goes wrong
- If you see "(name) has no mail folder, so there was nothing to look at.", the account has no mailboxes yet.
- If you see "It stopped before the end of the folder because of the time or size it is allowed.", run it again; what is already right is skipped.
Greylisting
What this does: answers the first mail from an unknown sender with "try again later". Real mail servers do try again; most spam senders do not. After one retry the sender is remembered, so only its first message is late.
When you need it: when a lot of spam reaches your customers and you accept that a first message from a new sender may arrive a few minutes late.
Where: Email > Greylisting
To turn greylisting on
- Open Email > Greylisting.
- Tick Ask new senders to try again later.
- In How long a new sender waits (seconds), type a number from 60 to 3600. 300 (five minutes) is a good start.
- In Senders that are never held up, list mail servers you trust, one on each line, such as
192.0.2.10or198.51.100.0/24. - Click Save. You see Saved. New senders are asked to try again.

Customers can switch greylisting off for a domain of their own.
If something goes wrong
- If you see "Greylisting isn’t available.", it needs spam filtering. Run the installer again with
--spam. - If an important sender's mail is always late, add its server's address to Senders that are never held up.
Welcome email
What this does: sends one message to every new mailbox, from postmaster (the standard address for a mail server's administrator) at the server's name, with a subject and text you write.
When you need it: when you want new mailboxes to get a short note, such as how to set up their mail program.
Where: Email > Welcome email
To turn on the welcome email
- Open Email > Welcome email.
- Tick Send a welcome email to a new mailbox.
- Type a Subject, one line of up to 200 characters.
- Type the Message in plain text. You can use the words
{address},{domain}and{server}; they are replaced with the real values when the message is sent. - Click Save welcome email. You see Saved. A new mailbox is sent this email.

Only mailboxes made by someone in a panel get it. Mailboxes made by an import or a restore do not.
If something goes wrong
- If you see "This server has no mail name to send from, so the welcome email cannot be switched on. Set the server’s host name first.", set it on Server > Hostname.
- If you see "(word) is not one of the words that are replaced.", use only
{address},{domain}and{server}in braces.
Mail statistics
What this does: shows what the mail server did each day: mail received, sent, delivered, delayed, bounced and refused, and the domains and addresses that came up most.
When you need it: to see whether mail volume changed suddenly, which can mean a hacked account or a spam attack.
Where: Email > Mail statistics
To see the mail statistics
- Open Email > Mail statistics.
- In Show, choose The last 7 days, The last 30 days or The last 90 days.
- The card In this period shows the totals: Received from other servers, Sent in with a login (by mail programs), Queued by programs on this server, Delivered to other servers, Delivered to mailboxes here, Delivery put off (to be tried again), Bounced and Refused while the sender was connected. Day by day shows the same counts for each day, newest first. Days are counted in UTC (world time, not your local time).
- Further down, Domains mail went to, Addresses refused most and Logins that sent most list the top names.
- To include the very latest mail, click Read the log now. You see "Read the mail log and updated."

If something goes wrong
- If you see "The mail server has not logged anything in this period yet.", the log is read every ten minutes. Click Read the log now.
- If one login in Logins that sent most sent far more than usual, its password may be stolen. Change it in the customer's panel.
Blocked senders and networks
What this does: refuses mail from sender domains you list and from mail servers at addresses you list. A third list names mail servers you trust that skip these checks.
When you need it: when one domain or one network keeps sending spam to your customers.
Where: Email > Blocked senders and networks
To block a sender domain or a network
- Open Email > Blocked senders and networks.
- In Sender domains, type each domain to block on its own line, for example
spam.example.net. A domain also blocks the domains under it. - In Client networks, type each address or range to block on its own line, for example
198.51.100.7or198.51.100.0/24. - In Trusted mail servers, list servers whose mail should skip the blocks, such as a filtering service in front of this server or a backup mail server (also called a backup MX) for your domains.
- Click Save lists. You see Saved. The lists apply to the next mail that arrives.

Mail sent with a login, with the sendmail command, and between this server's own accounts is never blocked.
If something goes wrong
- If you see "“(line)” has a space in it or is too long. Write one entry a line.", put each entry on its own line.
- If a domain is refused, you cannot block a domain this server hosts, or the server's own name.
- If a network is refused, it may be too wide (wider than /8 for IPv4 or /16 for IPv6) or hold this server's own address.
Mail by country
What this does: refuses, or puts off, mail that other servers send from the countries you choose.
When you need it: when most of your spam comes from countries your customers never receive real mail from.
Where: Email > Mail by country
To refuse mail from a country
- Open Email > Mail by country.
- In Add a country, choose the country from the list, then click Add. You see "(name) added. Save to apply."
- Under What happens to their mail, choose one. Refuse it is ticked at first, so change it if you want to start gently:
- Put it off: the other server is asked to try again later. Start here and watch the counts.
- Refuse it: the other server is told no at once.
- Under Exceptions, list Networks and Sender domains whose mail is never refused by country.
- Click Save countries. You see Saved. The choice applies to the next mail that arrives.

The card Refused lately shows how much mail was refused from each country in the last seven days.
If something goes wrong
- If you see "Saved. Nothing is refused by country until the country database can be used.", add the country database first.
- If a customer misses mail from a partner abroad, add the partner's mail server address under Networks in Exceptions.
SMTP restrictions
What this does: makes every program on the server send its mail through this server's own mail server, instead of connecting straight to other mail servers on their mail ports (25, and 465 and 587, the ports mail programs use to send). That way all mail is signed and counted, and a hacked website cannot send spam behind your back.
When you need it: on any server with many customers' websites. A hacked script that sends spam directly can get your server's address put on blocklists.
Where: Email > SMTP restrictions
To turn SMTP restrictions on
- Open Email > SMTP restrictions. The card Where things stand says Off and explains what the setting does.
- In the card Choose, tick Make programs send their mail through this server.
- If a customer sends through an outside mail service on purpose, type their account's login name in Add an account and click Add to the list.
- Click Save. A question explains that customers' scripts using an outside mail service stop working. Click Yes, turn it on.
- Where things stand now says On.

If something goes wrong
- If you see "nftables is not installed on this server, so the rules cannot be made.", install the
nftablespackage on the server's command line (dnf install nftableson AlmaLinux, Rocky Linux and RHEL;apt install nftableson Ubuntu and Debian), then come back. - If it says "On, but not in force", the rules are not loaded right now. Click Save again.
- If a customer's contact form stops sending, their script connects to an outside mail service. Add their account to the list, or ask them to send through this server.
Outgoing addresses
What this does: chooses which of this server's internet addresses (IP addresses) mail from each sender domain leaves from.
When you need it: when your server has more than one IP address and you want one customer's mail to leave from its own address, so another customer's reputation does not affect it.
Where: Email > Outgoing addresses
To give a domain its own outgoing address
- Open Email > Outgoing addresses. The table lists each Sender domain and the address it Leaves from.
- In the domain's row, choose an address from the list. The system’s address is the default.
- Click Save addresses. You see Saved. Mail from these domains leaves from the addresses chosen.

Before you do this, give the address a reverse name that matches (see DNS > Reverse DNS). A reverse name is the name an address answers to when someone looks it up backwards; other mail servers often check that it fits.
If something goes wrong
- If you see "This server has no address to choose from besides the one the system uses.", add another address under Server > IP addresses first. Extra addresses come from your server provider.
- If a domain shows "(address) (no longer on this server)", that address was removed. Choose another one and save.