Skip to content

Arch Server Progress

Chitchat
52 3 9.1k 1
  • I wanted to give an update on this. I have been working on trying to get a postfix, dovecot along with a couple of other programs working on this server. So far I have been unsuccessful. I am not giving up though and plan on starting a new thread to document each step that I take. Maybe someone will be able to see my mistake that I made or what I am missing and be able to help figure it out.

    I know it would be easier to just go through one of the mail websites that are out there, but I would really like to learn this process.

  • I wanted to give an update on this. I have been working on trying to get a postfix, dovecot along with a couple of other programs working on this server. So far I have been unsuccessful. I am not giving up though and plan on starting a new thread to document each step that I take. Maybe someone will be able to see my mistake that I made or what I am missing and be able to help figure it out.

    I know it would be easier to just go through one of the mail websites that are out there, but I would really like to learn this process.

    @Madchatthew Feel free to post the issues here 🙂

  • Well, I must say that I was finally able to get email working on my Arch server. I still need to setup postgrey and some spam assassin, get the dmarc and spf and one or two others setup and then it should be good to go for the most part. I am mainly using it to be able to send mail from websites, but having the option to have a separate email for their domains will be very nice.

    Once my brain solidifies after all of that, I will share what what I did. One thing I found is that it is important to just take it piece by piece and get each part working before moving on to the next. Also, test test test after each change, or each section.

  • I also wanted to post this. Here are the latest stats for the server so far. This is with all of the software setup and running along with doing updates once a week after testing them on my dev test server and making sure websites function properly.

    image.png

  • 100 days up and running. I have been doing updates each week and websites running strong and fast. I do not regret my decision of switching to Arch.

    image.png

  • 100 days up and running. I have been doing updates each week and websites running strong and fast. I do not regret my decision of switching to Arch.

    image.png

    @Madchatthew is this self hosted, or a VPS?

  • @Madchatthew is this self hosted, or a VPS?

    @phenomlab It is a VPS on Hetzner.

  • So last week I updated my production server, so it had been two weeks since being updated due to being busy the week before and I didn’t have any issues after the upgrade. So far I haven’t had to restart this server and the websites are up and running very well. So I hope it stays that way.

  • So I was updating the server today and realized I didn’t have Reflector running on it. So I install that and set it up to run as a service. So my hope is that the mirrorlist will always stay updated so I won’t have the error pop up in case I were to miss a bunch of upgrades for some reason.

  • So my next project with the Arch Server is to get the email working properly on it. I actually do have it setup so I can set up the email account in an email client. The part I am having trouble with is setting up the email to be able to send from a WordPress site. I put in the information that I do for the email client and it just won’t send the email out. I also believe that it won’t send to a Gmail account so I think I have something not entered in correctly for the dmarc or the spf. So I need to figure that out, but once I do, I should have a fully functional email server that works for different applications.

  • So my next project with the Arch Server is to get the email working properly on it. I actually do have it setup so I can set up the email account in an email client. The part I am having trouble with is setting up the email to be able to send from a WordPress site. I put in the information that I do for the email client and it just won’t send the email out. I also believe that it won’t send to a Gmail account so I think I have something not entered in correctly for the dmarc or the spf. So I need to figure that out, but once I do, I should have a fully functional email server that works for different applications.

    @Madchatthew Are you using Postfix for this in terms of the back-end?

  • @Madchatthew Are you using Postfix for this in terms of the back-end?

    @phenomlab yes, postfix and dovecot.

  • So I am thinking maybe I need to do this with the config file and the functions file in the template to get the emailing from wordpress to work when submitting a form?

    I am currently using WP SMTP Mail plugin, which I would think would configure all of this for me when I put in the information.

    https://www.mailersend.com/blog/wordpress-send-email#:~:text=Send an email with the WordPress API and wp_mail() function&text=php files%2C you can call,entered into the wp-config.

    I also need to go back through this to make sure I set all this up correctly as well.

    https://www.omnisend.com/blog/wordpress-send-email/

  • I was able to get the email server working appropriately this weekend. So now emails will be sent through to Gmail and such. I has to change the value of what was in my spf record, I added a dmarc and I already had a dkim entry in the DNS. I didn’t have to do anything to the dkim entry. I also had to point postfix to my SSL certificate of the server rather than the self signed one. Now I will be able to work on getting spam detection setup and virus scanning.

    I was pretty happy when everything started working. I was able to do all of these changes without having to reboot the server. That is very nice so there was no down time. Of course using Debian or Ubuntu there is virtualmin that would have done all the configuration for me, but it was actually pretty fun getting things up and running and seeing all the interactions that are required on the backend. It is crazy everything that takes place that you don’t even realize when using the front end like virtualmin.

  • I was able to get the email server working appropriately this weekend. So now emails will be sent through to Gmail and such. I has to change the value of what was in my spf record, I added a dmarc and I already had a dkim entry in the DNS. I didn’t have to do anything to the dkim entry. I also had to point postfix to my SSL certificate of the server rather than the self signed one. Now I will be able to work on getting spam detection setup and virus scanning.

    I was pretty happy when everything started working. I was able to do all of these changes without having to reboot the server. That is very nice so there was no down time. Of course using Debian or Ubuntu there is virtualmin that would have done all the configuration for me, but it was actually pretty fun getting things up and running and seeing all the interactions that are required on the backend. It is crazy everything that takes place that you don’t even realize when using the front end like virtualmin.

    @Madchatthew said in Arch Server Progress:

    Of course using Debian or Ubuntu there is virtualmin that would have done all the configuration for me, but it was actually pretty fun getting things up and running and seeing all the interactions that are required on the backend. It is crazy everything that takes place that you don’t even realize when using the front end like virtualmin.

    Never a more true statement made. Virtualmin, whilst very convenient and “easy” (to a degree) often masks the real effort needed to get something working, and understanding what is “under the hood” is always better. When it breaks, you know where to look to fix.

  • @Madchatthew said in Arch Server Progress:

    Of course using Debian or Ubuntu there is virtualmin that would have done all the configuration for me, but it was actually pretty fun getting things up and running and seeing all the interactions that are required on the backend. It is crazy everything that takes place that you don’t even realize when using the front end like virtualmin.

    Never a more true statement made. Virtualmin, whilst very convenient and “easy” (to a degree) often masks the real effort needed to get something working, and understanding what is “under the hood” is always better. When it breaks, you know where to look to fix.

    @phenomlab yes, and I never realized how in depth and how many processes it takes to manually do what Virtualmin does and I have a new found respect for everything that needs to happen for Virtualmin to make a virtual host and for everything to work.

  • @phenomlab yes, and I never realized how in depth and how many processes it takes to manually do what Virtualmin does and I have a new found respect for everything that needs to happen for Virtualmin to make a virtual host and for everything to work.

    @Madchatthew it really is a great product - you cannot argue that.

  • @Madchatthew it really is a great product - you cannot argue that.

    @phenomlab said in Arch Server Progress:

    @Madchatthew it really is a great product - you cannot argue that.

    100% agree!

  • So I have been battling the email server for a long time it feels like. I believe I have finally figured it out and what I needed to change to get it to work appropriately. I ended up having to change the server name and added mail.domain.com to it. I think I could have used anything, not just mail to get this to work. I could have used server1.domain.com or whatever word I wanted. This has to do with the reverse dns that you set in the settings for the server in the hosting companies dashboard. From my understanding, it seems to have something to do with how dmarc or dkim works. I can’t remember 100% off the top of my head right now. Then in the dns of the domain name, which is hosted on another site, i added mail.domain.com as an alias. All of those things point to the same IP, so I don’t think I would have had to add that with how things were set initially with domain.com.

    I hope that makes sense. I then had to go into the server and change some of the configuration files for postfix, postfixadmin and change the domain.com entries to mail.domain.com and restart those services. Then I deleted the domains and mailboxes I created for postfix and recreated them. Then all of a sudden all of my test emails were delivered to the email addresses I created and to my gmail account. Now I just have to test the other email account I made and I should be good to go.

    The awesome thing about changing the server name, is that I didn’t have to restart the server for it to take effect. You edit your /etc/hostname file and type the name you want your server to be. Then you type hostnamectl set-hostname <new_hostname> and then in the console you can type in hostnamectl and it will show the new hostname.

  • So I have been battling the email server for a long time it feels like. I believe I have finally figured it out and what I needed to change to get it to work appropriately. I ended up having to change the server name and added mail.domain.com to it. I think I could have used anything, not just mail to get this to work. I could have used server1.domain.com or whatever word I wanted. This has to do with the reverse dns that you set in the settings for the server in the hosting companies dashboard. From my understanding, it seems to have something to do with how dmarc or dkim works. I can’t remember 100% off the top of my head right now. Then in the dns of the domain name, which is hosted on another site, i added mail.domain.com as an alias. All of those things point to the same IP, so I don’t think I would have had to add that with how things were set initially with domain.com.

    I hope that makes sense. I then had to go into the server and change some of the configuration files for postfix, postfixadmin and change the domain.com entries to mail.domain.com and restart those services. Then I deleted the domains and mailboxes I created for postfix and recreated them. Then all of a sudden all of my test emails were delivered to the email addresses I created and to my gmail account. Now I just have to test the other email account I made and I should be good to go.

    The awesome thing about changing the server name, is that I didn’t have to restart the server for it to take effect. You edit your /etc/hostname file and type the name you want your server to be. Then you type hostnamectl set-hostname <new_hostname> and then in the console you can type in hostnamectl and it will show the new hostname.

    @Madchatthew Impressive stuff. Postfix can be quite the beast to tame, but it sounds like you’ve managed really well here.


Related Topics
  • Arch Linux | Reflector

    Linux arch linux pacman reflector updates
    4
    4 Votes
    4 Posts
    2k Views
    I have another update for reflector that I just figured out. You will want to edit the following file and add details to make sure that every time it updates the mirror list, it is grabbing them from your country and I grab 10 and sort them by rate. This will ensure that your mirrorlist isn’t getting populated with links from other countries which can slow down you downloads. sudo nano /etc/xdg/reflector/reflector.conf This is what the file looks like. # Reflector configuration file for the systemd service. # # Empty lines and lines beginning with "#" are ignored. All other lines should # contain valid reflector command-line arguments. The lines are parsed with # Python's shlex modules so standard shell syntax should work. All arguments are # collected into a single argument list. # # See "reflector --help" for details. # Recommended Options # Set the output path where the mirrorlist will be saved (--save). --save /etc/pacman.d/mirrorlist # Select the transfer protocol (--protocol). --protocol https # Select the country (--country). # Consult the list of available countries with "reflector --list-countries" and # select the countries nearest to you or the ones that you trust. For example: --country US # Use only the most recently synchronized mirrors (--latest). --latest 10 # Sort the mirrors by synchronization time (--sort). --sort rate Here are the different flag options that you can change or add to this file. I found this on google by searching arch linux reflector flags. Filtering Options (What to find) --country <CODE/Name>: Selects mirrors from specific countries (e.g., US, France,Germany). Use {Link: reflector --list-countries https://archlinux.org/mirrors/status/}, for a full list. --protocol <http|https>: Filters for HTTP or HTTPS mirrors. --age <hours>: Only includes mirrors synced within the last X hours (e.g., --age 12). --delay <hours>: Limits to mirrors with a reported sync delay of X hours or less (e.g., --delay 0.25 for 15 mins). --latest <N>: Limits results to the top N newest mirrors. Sorting Options (How to order) --sort rate: Sorts by download speed (requires testing, can be slow). --sort age: Sorts by most recently synced. --sort score: Sorts by overall score. --sort country: Sorts by country, useful with multiple countries. Output Options (Where to put it) --save <path>: Writes the filtered/sorted list to a file (e.g., /etc/pacman.d/mirrorlist). --verbose or -v: Shows detailed progress and mirror info.
  • Linux on a Stick

    Linux linux usb arch
    29
    16 Votes
    29 Posts
    4k Views
    @DownPW I haven’t tried either of those, I am sure they run fast as well. Linux is so versatile it is awesome!
  • 0 Votes
    4 Posts
    1k Views
    @DownPW most of this really depends on your desired security model. In all cases with firewalls, less is always more, although it’s never as clear cut as that, and there are always bespoke ports you’ll need to open periodically. Heztner’s DDoS protection is superior, and I know they have invested a lot of time, effort, and money into making it extremely effective. However, if you consider that the largest ever DDoS attack hit Cloudflare at 71m rps (and they were able to deflect it), and each attack can last anywhere between 8-24 hours which really depends on how determined the attacker(s) is/are, you can never be fully prepared - nor can you trace it’s true origin. DDoS attacks by their nature (Distributed Denial of Service) are conducted by large numbers of devices whom have become part of a “bot army” - and in most cases, the owners of these devices are blissfully unaware that they have been attacked and are under command and control from a nefarious resource. Given that the attacks originate from multiple sources, this allows the real attacker to observe from a distance whilst concealing their own identity and origin in the process. If you consider the desired effect of DDoS, it is not an attempt to access ports that are typically closed, but to flood (and eventually overwhelm) the target (such as a website) with millions of requests per second in an attempt to force it offline. Victims of DDoS attacks are often financial services for example, with either extortion or financial gain being the primary objective - in other words, pay for the originator to stop the attack. It’s even possible to get DDoS as a service these days - with a credit card, a few clicks of a mouse and a target IP, you can have your own proxy campaign running in minutes which typically involves “booters” or “stressers” - see below for more https://heimdalsecurity.com/blog/ddos-as-a-service-attacks-what-are-they-and-how-do-they-work @DownPW said in Setting for high load and prevent DDoS (sysctl, iptables, crowdsec or other): in short if you have any advice to give to secure the best. It’s not just about DDos or firewalls. There are a number of vulnerabilities on all systems that if not patched, will expose that same system to exploit. One of my favourite online testers which does a lot more than most basic ones is below https://www.immuniweb.com/websec/ I’d start with the findings reported here and use that to branch outwards.
  • Linux vs Windows - who wins ?

    Blog windows linux
    8
    4 Votes
    8 Posts
    2k Views
    @phenomlab LOL ah yes, I remember all of that. The good ole days!
  • IRC Server/Client - Chat App with NodeBB

    Linux nodebb irc server client
    6
    1 Votes
    6 Posts
    2k Views
    @Hari not sure from the consumer perspective, but Skype has been all but completely consumed by Microsoft Teams when it comes to business usage.
  • Is plesk good over virtual min?

    Solved Linux linux
    6
    4 Votes
    6 Posts
    1k Views
    @phenomlab thank you
  • SSl expired on virtualmin

    Solved Configure virtualmin ubun server ssl
    18
    3 Votes
    18 Posts
    3k Views
    @justoverclock Not necessarily. You only need to use this if it fails from the Virtualmin window
  • 2 Votes
    28 Posts
    7k Views
    @phenomlab said in Advantages and disadvantages of changing to Ubuntu?: @jac Yeah, I wouldn’t just leap into it unless you have a valid reason (such as the laptop no longer working and needing to be reinstalled). Probably better the devil you know currently. Absolutely mate, and generally as discussed that is the only time I have changed over to Ubuntu once the laptop has got slower. For now I will carry on with Windows, purchase the VPN & BitDefender in later October / early November and then see how all that runs for a few more months .