server_mail_vec_postfix_et_fetchmail [wiki ubuntu-fr] (2024)

このページを考慮します老朽化そして、もはや有用な情報が含まれていません。
あなたの助けをもたらす...

サーバ通信網MDA老朽化

説明

チュートリアルの目的は、インストールと使用ですポストフィックスメールを送信するために、フェッチメール回復用と、視覚化と電子メールの送信のための2つのメール。

なぜ2つのメーターを使用するのですか?
Thunderbirdは、誰もがそうであるように、彼のPCから電子メールを読むことを許可しますがMuttサーバーがネットに接続されている場合、任意のPCからコンソールで電子メールを読み取ることができます。

チュートリアルをより明確にするために、私は定義します2つのメールボックス

  • の箱アクセスプロバイダー無料のラポステのようにtoto@fai.fr

  • の箱内部メールサーバーtoto@postfix.fr

パッケージのインストール
何よりも、特定の数のパッケージをインストールする必要があります。

sudo apt-get install postfix fetchmail procmail mutt

十分です。

fetchmailの構成

次に、の構成に進みましょうフェッチメールフェッチメール電子メールの回復に責任があります。ファイルは、個人のユーザーディレクトリに定義する必要があります。

sudo touch .fetchmailrc && sudo xdg-open .fetchmailrc

空のファイルが開きます。追加する必要があります。

## FA:インターネットアクセスプロバイダー。pollpop.fai.frプロトコルpop3ユーザーtoto@fai.netパスワードmot_de_passe_to optionsキープ

次に、ファイルを保存します。

l'オプション保つメールを失うことなくテストを行うことができます。私は、あなたが警告したと言います、私は何が起こっているのかに気付く前に、私はいくつかのメールを失いました。

の喜びに保つ、パラメーターを使用できますフェッチ。これにより、すべてのメールを回復できます。たくさんのメールを受け取っていて、サーバーを乱雑にしたくない場合に役立ちますファイ

ファイル保護
これで、アカウントからパスワードをクリアして表示するこのファイルを保護する必要があります。これは私がまだ実行していないステップです(怠inessによって)が、私はあなたに方法を与えます。

Fetchmailユーザーを定義します(独創性がありません。もちろん、必要に応じて呼び出すことができます)作成する必要があります。

su adduse -g 65534 -d /directory_des_courriels fetchmail

  • -gまたは(-gid)nogroupグループを使用します。Nogroupに対応するGIDを置きます。ここでは65534です。実際、あなたはあなたが望むものを置きます(たとえば、ユーザーの場合は100も悪くありません)。

  • -dまたは(-home)/home/toto/maildirディレクトリをHome Directory(= user Directory)として使用します。

それがうまくいくようにユーザー/権利を変更します:

sudo chown fetchmail:nogroup/home/toto/.fetchmailrcsudo chmod 600/home/toto/.fetchmailrcsudo chown -r fetchmail:nogroup/home/toto/maildirsudo chmod 700/home/home/toto

次に、2つのことを確認するために残ります。

  • ファイル/etc/default/fetchmail(debian)がデーモンでのfetchmailの起動を承認すること:start_daemonは、このファイルではいに配置する必要があります。

  • Script /etc/init.d/fetchmailの起動は、/home/cato/maildirで必要なすべてを他の場所ではないことを、それ以外の場合は適切に動作しない可能性があります。

それで。通常、Fetchmailの発売。

構成de procmail

Procmailは、呼ばれるフィルターを使用して電子メールを並べ替える責任がありますレシピ

sudo apt-get maildropsudo maildirmake maildirをインストールします

これにより、〜メールボックス、つまりあなたの/home/totoにMailDir//in〜メールボックスが作成されます。

もう一度、たとえば個人ディレクトリにファイルを記述する必要があります。

sudo touch .procmailrc && sudo xdg-open .procmailrc

このタイプのファイルを取得するには、空白ページを完成させる必要があります

maildir =/home/toto/maildir ## exists.logfile =/home/toto/.procmaillogstract = no#verbose = on(debuggingにのみ使用されます。)verbose = offformail =/usr/bin/トレーニング= "## #「レシピ」の行は、「レシピ」の行にコメントを入れません*で、合理的な表現を使用します。複製:0 whc:.msgid.lock |:ローン)$ maildir/spam#moth messages html.:0* ^content-type:。* html $ maildir/junk#wiki-ubuntuのメーリングリスト:0* ^件名:。*(uwiki)$ maildir/uwiki#ローカルメールのソート:0* ^tototo @postfix.fr $ maildir/premises:0* ^toroot@postfix.frumemaildir/locaux ########################## #####最後のルール:起こることはすべて、ここでデフォルトボックスに移動します。######################したがって###########: 0*。*受信トレイ

MailDir =/home/toto/maildirは、ソートされた電子メールが保存されるディレクトリです。
logfile =/home/toto/.procmaillogはエラーファイルです。

その後、別のレシピが来ます:0次に、並べ替えの基準を示します* ^toまたは*^件名そして最後に、メールを保存するファイル。例えば$ maildir/施設

より多くの説明については、非常に精巧なレシピの実現について話す多くのサイトがあります。

  • 複製された電子メールを避けるためのレシピ

  • スパマッサシンの使用

  • 拡散リストに従ってソート

  • 内部メール

  • 残りは受信トレイファイルに保存されます。

サーバー操作の確認

このステップは、SMTPサーバーがインストールされている瞬間から作成できます。または、mailxパッケージコマンドを使用します。

メール-Sテストtoto@fai.netcc:テストする

次に、ctrl+dは、科目のtoto@fai.netでメールを送信し、表示するテストテキストとして送信します。特別なコピーなし。
Fetchmailでメールを上げる方法。
入力するだけです

fetchmail -akv -m "/usr/bin/procmail -d%t"

権利が適切に割り当てられている場合、Fetchmailが質問しているのがわかりますファイそして彼がメールを回復するのを見てください。

それ以外の場合は、CHMOD、CHGRP、およびChownで再割り当てする必要があります。

ソートを確認する方法は?
ファイルに移動する必要があります郵便Procmailで定義されているファイルをクリックします。電子メールはレシピでソートされていないため、対応するファイルが表示されません。

見つけられない場合は、レパートリーに保管できます/ var / mail / blood iルート。

Thunderbirdの構成

Thunderbirdのポップアカウントを古典的な方法で定義します。それから私たちは行きますアカウントパラメーター、ローカルファイルのディレクトリを変更して、以前に作成したMailDirファイルにリダイレクトします。

ここにあります小さな重要な微妙さ。他の人は別の解決策を見つけるかもしれません。

となることによってProcmailでソートされたファイルThunderbirdによって表示され、管理される、それは必要ですローカルファイルにサブフォルダーを作成します

たとえば、スパムボックスサブフォルダーを作成して、内部メッセージのローカルサブフォルダーを回復します。

構成de postfix

最後に、Postfixを使用してメールを送信します。このメールサーバーの非常に簡単な使用です。
実際、領域を作成しますが、残念ながらWebで知られていません。したがって、外部にメールを送信するときにドメイン名を書き換える必要があります。一部のアクセスプロバイダーは、ドメイン名を知っているときに電子メールを防止します。

ファイルを公開します

sudo xdg-open/etc/postfix/main.cf

次に、ここに特定の数の行を修正しますコピー

main.cf
#/usr/share/postfix/main.cf.distコメントを参照してください。「遅延メール」警告を生成する#DELAY_WARNING_TIME = 4H#NOM DU DU DU SERVIR DE CORRILMYHOSTNAME = POSTFIX.FRMYDOMAIN = CE QUE L'ON VEUTMYNETWORKS = 127.0.0.0/8# DES ALIASALIAS_MAPS = HASH:/EILASEAS_DATABASE = HASH://ariseMyorigin = /etc /mailnamemydestination = localhost.localdomain、postfix.fr、localhost、ubuntu、#reayhost = smtp.fai.frmailbox_command = procmail -a "$ extension" mailbox_size_limit = neet_interfaces sururimiteDOSSIRE MAILDIRHOME_MAILBOX = MailDir/#ligne Pour La Translation D'Adresse(en Plus)Sender_Canonical_Maps = Hash:/etc/postfix/canonical

ドメイン名(myhostname)内部メールサーバーの名前に対応します。postfix.fr
ドメイン名(MyDomain)のような領域に対応しますwww.googe.frまたはその他。対応するページをご覧くださいDNS_DYNAMICS

エイリアス(alias_map)タイピングによって文字の文字の執筆を簡素化するために使用されますtotoこれは、電子メールサーバーを意味しますtoto@postfix.fr。のメールをリダイレクトすることもできます彼自身の演説に向かって。これは、障害を防ぐために内部の電子メールを送信するため、これは比較的興味深いものです(Fail2Banの例)。ファイル /などを開く必要があります。

メールにメールが送信されたサーバーの名前が表示されます(ミオリギン)。ここでは、 /etc/mailname(postfix.fr)にあるドメインの名前です。これは、電子メールを送信するために変更する必要がある名前です。
筋肉内部ネットワークに電子メールを送信する他の可能な名前を示します。したがって、Totoに手紙を送るために、toto@postfix.frを書くこともできますが、@localhostも書くことができます。メールは同じように送信されます。
La MailCommandPostfixでProcmailを注文してメールを受信できます。

home_mailbox)IMAPサーバー(Mail-IMAP)をインストールした場合、ダウンロードされたメールは /MailDirディレクトリに保存されます。

アドレス書き換え線(sender_canonical_maps)追加されます。これで、送信者のアドレスであるメールを送信するときに変更します。toto@fai.frによってtoto@postfix.frを変更します。
ファイル/etc/postfix/canonicalを作成することを忘れないでください

sudo touch/etc/postfix/canonical && sudo xdg-open/etc/postfix/canonical

バージンページが開き、次のように書きます。

toto@postfix.fr toto@fai.fr

最後に、ApostmapによるPostfixにリンクされたデータベースのロードについて考える必要があります。

ポストマップ/etc/postfix/canonical

結論

このページで、他の人を助けることができることを望んで、電子メールサーバーの個人的なインストールについて説明しました。
Postfixのインストールは、それほど高度な使用ではありません。詳細については、専門のドキュメントをお読みください。
ウェブグラフィーサーバーを開発できるすべてのリンク。

詳細については、フォーラムでお会いしましょうhttps://forum.ubuntu-fr.org/viewtopic.php?id=71599

貢献者:ビドー

server_mail_vec_postfix_et_fetchmail [wiki ubuntu-fr] (2024)

FAQs

How to remove virus from Ubuntu? ›

Some of the scanning software you can utilize to scan your Linux server are ClamAV, Rkhunter, Chkrootkit, Lynis, and Linux Malware Detect (LMD). ClamAV is a free and versatile open-source antivirus engine to detect malware, viruses, and other malicious programs and software on your system.

How to remove Ubuntu software from Ubuntu? ›

When App Center opens, click the Installed button at the top. Find the application that you want to remove by using the search box or by looking through the list of installed applications. Select the application and click Remove. Confirm that you want to remove the application.

How to remove Ubuntu OS from Ubuntu? ›

Using OS-Uninstaller
  1. launch OS-Uninstaller.
  2. choose the OS you want to remove and click "OK"
  3. a confirmation window will appear:
  4. click "Apply" to start the removal.
Jan 18, 2022

How to remove Ubuntu from virtual machine? ›

If you're a Windows user, the Ubuntu files are usually stashed away in the “VirtualBox VMs” folder, found in your user directory. The folder is typically named after the name of your virtual machine, such as “Ubuntu 20.04 LTS”. Locate this folder and purge the entire folder to eliminate every Ubuntu file.

How to exit safe mode Ubuntu? ›

Try to type exit or Ctrl-D to exit emergency mode, or type “reboot” to try again.

How do I check rootkits in Ubuntu? ›

To run a simple scan for rootkits, you're going to use the —check option, which can be run by typing sudo rkhunter -c , or by typing sudo rkhunter —check . Important: Remember to use sudo every time you run this tool to give it all the privileges that it might need.

How do I remove unwanted installations in Ubuntu? ›

Uninstall Packages in Ubuntu via GUI
  1. Open Ubuntu Software Center.
  2. Select the Installed tab.
  3. Scroll down the list of programs and find the one to uninstall.
  4. Click the Uninstall button next to the program.
  5. Type the password to confirm and wait for the uninstallation to finish.
May 23, 2024

How do I remove apt packages from Ubuntu? ›

To uninstall a package and remove its configuration files, you can use the sudo apt-get purge package_name or apt –purge remove package_name command. This ensures that all the package's archive files and configuration settings are also deleted.

How do I remove a file in Ubuntu server? ›

Permanently delete a file
  1. Select the item you want to delete.
  2. Press and hold the Shift key, then press the Delete key on your keyboard.
  3. Because you cannot undo this, you will be asked to confirm that you want to delete the file or folder.

How do I remove Ubuntu and reinstall Ubuntu? ›

How to Reinstall Ubuntu On Your System
  1. The Prerequisites.
  2. Step #1: Backup Your Data.
  3. Step #2: Download Ubuntu From the Official Website.
  4. Step #3: Create the Live USB.
  5. Step #4: Reinstall Ubuntu on the Target Machine.
Mar 11, 2024

How do I clean out Ubuntu? ›

How to Clean Up Your Ubuntu System?
  1. Remove all the Unwanted Applications, Files and Folders. Using your default Ubuntu Software manager, remove the unwanted applications that you don't use.
  2. Remove unwanted Packages and Dependencies. ...
  3. Need to Clean the Thumbnail Cache. ...
  4. Regularly clean the APT cache.
Jan 1, 2024

How to remove Ubuntu using terminal? ›

One way is to press (Ctrl + Alt + T) and the other is to click on the Dash Home button (or hit the Windows logo key on your keyboard) and search for "Terminal". and press enter. Open OS-Uninstaller. Click on the dash home button and search for "OS-Uninstaller".

How do I get rid of a virtual machine? ›

To remove a VM, right-click on the VM in the VirtualBox Manager's machine list and select Remove. The confirmation dialog enables you to specify whether to only remove the VM from the list of machines or to remove the files associated with the VM.

Does Ubuntu have built-in antivirus? ›

Ubuntu, like many other distributions of GNU/Linux, comes with no anti-virus or anti-malware programs. Ubuntu does however have a firewall, and the Linux Kernal on its side, as well as the server versions, have further features to harden the device, but these need to be set up by the user.

How do I run a malware scan on Ubuntu? ›

Install ClamAV:
  1. sudo apt-get install clamav.
  2. Update virus signatures:
  3. sudo freshclam.
  4. Scan all files for infected files and print them out, striking a bell when one is detected:
  5. sudo clamscan-r--bell-i/
  6. Scans can and should be automated so you don't have to remember to do them or waste time doing them manually.
Jul 6, 2021

Can Ubuntu be infected by viruses? ›

While Linux systems are generally considered to be more secure than other operating systems, they are not immune to viruses. There have been several real-life examples of Linux viruses that have been discovered and neutralized over the years.

Top Articles
キャドバリーチョコレートは本当に中毒性があるのでしょうか?このおいしいおやつの背後にある科学
Het beste restaurant van Bournemass, Engeland
Gilbert Public Schools Infinite Campus
Kokomoscanner
Emma Louise (TikTok Star) Biography | Wiki | Age | Net Worth | Career & Latest Info - The Daily Biography
Python Regex Space
Income statement – Definition, Importance and Example | Zoho Books
Craig Woolard Net Worth
What Is Flipping Straights Ted Lasso
Pulitzer And Tony Winning Play About A Mathematical Genius Crossword
Fkiqx Breakpoints
Craigslist Tuscarawas Pets
Thomas Funeral Home Sparta Nc
Vonage Support Squad.screenconnect.com
[PDF] JO S T OR - Free Download PDF
Stepmom Full Video Hd
Browse | Obituaries | Enid News and Eagle
Test Nvidia GeForce GTX 1660 Ti, la carte graphique parfaite pour le jeu en 1080p
Ice Crates Terraria
Director, Regional People
Vanity Fair Muckrack
Truist Business Checking: 2024 Review
Aussiebigdaddik
Wharton Funeral Home Wharton Tx
WWE Bash In Berlin 2024: CM Punk Winning And 5 Smart Booking Decisions
Walgreens Shopper Says Staff “Threatened” And “Stalked” Her After She Violated The “Dress Code”
Frontier Internet Outage Davenport Fl
Zen Leaf New Kensington Menu
Poe Poison Srs
Advance Auto Parts Near Me Open Now
Clean My Mac Sign In
Joy Jenkins Barnett Obituary
Gmail Psu
Katie Sigmond - Net Worth 2022, Age, Height, Bio, Family, Career
Frigjam
Are Huntington Home Candles Toxic
Strange World Showtimes Near Amc Hoffman Center 22
Rachel Pizzolato Age, Height, Wiki, Net Worth, Measurement
Accident On 215
Ice Hockey Dboard
O'reilly's In Mathis Texas
GW2 Fractured update patch notes 26th Nov 2013
Beaufort Mugfaces Last 72 Hours
Tamu Registration Worksheet
Lindy Kendra Scott Obituary
1 Filmy4Wap In
No Hard Feelings Showtimes Near Pullman Village Centre Cinemas
Csi Trigonometry Answer Key
Rachaelrayshow Com Recipes
Bass Tracker Boats For Sale On Craigslist
Sharon Sagona Obituary
Mileage To Walmart
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 6151

Rating: 4.6 / 5 (46 voted)

Reviews: 93% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.