Δημιουργήστε το δικό σας διακομιστή αλληλογραφίας - πώς λειτουργεί
Εάν θέλετε να δημιουργήσετε το δικό σας διακομιστή αλληλογραφίας, απαιτούνται ορισμένα βήματα. Σε αυτή την πρακτική συμβουλή, θα σας δείξουμε πώς να προχωρήσετε.
Δημιουργήστε το δικό σας διακομιστή αλληλογραφίας - προετοιμασίες
- Κάτω από το Debian 7 XFCE, κάντε πρώτα κλικ στο εικονίδιο δικτύου στην επάνω δεξιά γωνία και επιλέξτε "Πληροφορίες σύνδεσης".
- Σύρετε αυτό το παράθυρο στην πλευρά και κάντε δεξί κλικ στο εικονίδιο ξανά. Στη συνέχεια, επιλέξτε "Επεξεργασία συνδέσεων".
- Εκεί επιλέγετε τη σύνδεση και κάντε κλικ στο "Επεξεργασία". Στη συνέχεια, μεταβείτε στην καρτέλα "Ρυθμίσεις IPv4".
- Για να διασφαλίσετε ότι ο διακομιστής αλληλογραφίας έχει πάντα την ίδια διεύθυνση IP, ορίστε τη μέθοδο "Μη αυτόματη" και εισαγάγετε τη διεύθυνση IP από το παράθυρο των πληροφοριών σύνδεσης στην ενότητα "Διεύθυνση".
- Εισαγάγετε την "μάσκα υποδικτύου" από το άλλο παράθυρο στο πεδίο "Μάσκα δικτύου", ενώ στην ενότητα "Προεπιλεγμένη διαδρομή" στο πεδίο "Πύλη" και στην περιοχή IP από το πρωτεύον DNS στο πεδίο "διακομιστής DNS".
- Αποθηκεύστε κάνοντας κλικ στο "Αποθήκευση".
Δημιουργήστε το δικό σας διακομιστή αλληλογραφίας - εγκαταστήστε το διακομιστή αλληλογραφίας
- Τώρα μεταβείτε στο "Αξεσουάρ"> "Τερματικό" και λάβετε δικαιώματα διαχειριστή με "su" και τον κωδικό πρόσβασης διαχειριστή.
- Στη συνέχεια, πληκτρολογήστε την εντολή "apt-get install exim4 dpkg-reconfigure exim4-config" για να εγκαταστήσετε το διακομιστή αλληλογραφίας και επιβεβαιώστε με [Enter].
- Κατά τη ρύθμιση, επιλέξτε την επιλογή "Αποστολή μέσω του κέντρου αποστολής (Smarthost), Λήψη με SMTP ή Fetchmail".
- Αφήστε το πεδίο "Όνομα ηλεκτρονικού ταχυδρομείου συστήματος" κενό και κάντε κλικ στο.
- Εισαγάγετε την "μάσκα υποδικτύου" από το άλλο παράθυρο στο πεδίο "Μάσκα δικτύου", ενώ στην ενότητα "Προεπιλεγμένη διαδρομή" στο πεδίο "Πύλη" και στην περιοχή IP από το πρωτεύον DNS στο πεδίο "διακομιστής DNS".
- Στην ενότητα "Διευθύνσεις IP στις οποίες αναμένονται εισερχόμενες συνδέσεις SMTP", αλλάξτε τη γραμμή ως εξής: 127.0.0.1; :: 1; 192.168.178.39
- Επίσης, αφήστε κενό το πεδίο "Άλλοι προορισμοί για τις οποίες θα λαμβάνετε μηνύματα ηλεκτρονικού ταχυδρομείου".
- Εισαγάγετε "192.168.178.0/24" για "Υπολογιστές για τους οποίους πρέπει να προωθούνται μηνύματα ηλεκτρονικού ταχυδρομείου (ρελέ)".
- Πρέπει να εισαγάγετε τη διεύθυνση SMTP του παροχέα σας στο πεδίο "Διεύθυνση IP ή όνομα υπολογιστή του κέντρου αποστολής για εξερχόμενα μηνύματα ηλεκτρονικού ταχυδρομείου".
- Απαντήστε σε όλες τις υπόλοιπες ερωτήσεις με το "Όχι".
- Η ρύθμιση ολοκληρώνεται. Επιστρέψτε στο τερματικό και πληκτρολογήστε "nano /etc/exim4/exim4.conf.localmacros" έτσι ώστε να γίνει κρυπτογράφηση της σύνδεσης SMTP.
Δημιουργήστε το δικό σας διακομιστή αλληλογραφίας - τελικές ρυθμίσεις
- Ανοίξτε ξανά το τερματικό και εγκαταστήστε το διακομιστή εισερχομένων Dovecot με το "apt-get install dovecot-imapd".
- Με την εντολή "nano /etc/dovecot/conf.d/10-mail.conf" ανοίγετε το αρχείο ρυθμίσεων. Μετακινηθείτε προς τα κάτω στο "mail_location" και αλλάξτε τη γραμμή ως εξής: mail_location = mbox: ~ / mail: LAYOUT = maildir ++: INBOX = / var / mail /% u: CONTROL = ~ / mail / control
- Αποθηκεύστε τις αλλαγές με [CTRL] + [O].
- Για να ανακτώνται τα μηνύματα ηλεκτρονικού ταχυδρομείου από το διακομιστή, χρειάζεστε το Fetchmail. Μπορείτε να το εγκαταστήσετε με το "apt-get install fetchmail procmail".
- Στη συνέχεια, κάθε χρήστης πρέπει να δημιουργήσει ένα αρχείο που ονομάζεται "fetchmailrc" στον αντίστοιχο οικείο κατάλογο.
- Αυτό το αρχείο πρέπει να είναι δομημένο ως εξής: Δημοσκόπηση Χρήστης είναι Pass Folder INBOX Ssl MDA "formail -c >> - / mail / .INBOX" Κρατήστε
- Στην ενότητα "Δημοσκόπηση" εισάγετε το πρωτόκολλο και το διακομιστή του παροχέα σας, με "User" και "Pass" το όνομα χρήστη σας και εισάγετε τον αντίστοιχο κωδικό πρόσβασης. Κατόπιν καθορίζεται πού πρέπει να αποθηκεύονται τα ταχυδρομικά μηνύματα και ότι πρέπει να ανακτηθούν με ασφάλεια.
- Προκειμένου τα μηνύματα να φορτωθούν αυτόματα, πληκτρολογήστε "crontab -e" στο τερματικό και μετά την εντολή: 0, 10, 20, 30, 40, 50 * * * * / usr / bin / fetchmail -s
Αυτή η πρακτική συμβουλή βασίζεται στο Linux Debian 7 XFCE. Εάν θέλετε να νοικιάσετε ένα διακομιστή αλληλογραφίας, έχουμε συνοψίσει τους τρεις φθηνότερους παρόχους για εσάς.