Open Relay "deaktivieren"


Merlok

New Member
Kurz vorweg:
Aktuell habe ich genau das bei meinem Server schon getan, weiss aber nicht mehr wie, da es schon etwas her ist.

Ich hoffe dass ich hier das richtige Forum benutze (es geht ja quasi um Mailserver).

Am Wochenende werde ich meinen Server mit CentOS neu aufsetzen.
In diesem Zusammenhang habe ich eben schon im Forum versucht Threads zu finden in denen erklärt wird wie man Open Relays verhindert/deaktiviert.

Leider habe ich auf Anhieb nichts finden können, daher die Frage.

Vielen Dank schonmal für eure Antworten.
 
Also der Mailserver ist qmail, wenn ich das richtig sehe.

Ich weiss nicht genau wie sich das dann bei CentOS verhält mit dem Mailserver. Evtl. ist das da dann nen anderer.
 
Ja das hat geholfen! Danke!:)

3.1. Postfix

Postfix configuration files are stored in /etc/postfix. The two main postfix configuration files are master.cf and main.cf, although we will only be dealing with main.cf here. First we are going to make some additions or changes to the main.cf configuration file. The following lines should be added, edited or uncommented:

myhostname = mail.example.com
mydomain = example.com
myorigin = $mydomain
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
mynetworks = 192.168.0.0/24, 127.0.0.0/8
relay_domains =
home_mailbox = Maildir/

Note: Each line should start at the beginning of a new line and should not be preceded by white space or tabs. White space or tabs at the beginning of a line are treated as a continuation of the previous line, and if the previous line is a comment (#) line then the subsequent line is also treated as such. Further, inline comments should be avoided.

Now lets take a look at each setting it turn to understand what we've just done:

relay_domains: is a list of destination domains this system will relay mail to. By setting it to be blank we ensure that our mail server isn't acting as an open relay for untrusted networks. The reader is advised to test that their system isn't acting as an open relay here: http://www.abuse.net/relay.html
 
So das CentOS habe ich jetzt installiert.

Aber irgendwie fehlt mir der Ordner /etc/postfix.

Entweder habe ich kein postfix als Mailserver drauf sondern was anderes, oder ich muss postfix noch installieren.

Gibt es denn einen Befehl mit dem ich mir den Mailserver anzeigen lassen kann?

Edit:
Ok ich Dummkopf habs selber rausgefunden. Geht natürlich mit ps -e beispielsweise....

Also es läuft ein qmail MTA drauf.

Wo kann ich den konfigurieren? Es geht mir vor allem darum Open Relays zu verhindern.
 
Last edited by a moderator:
Naja ich bin davon ausgegangen dass postfix standardmässig dabei ist.

Aber es ist ja wie gesagt qmail installiert.
Wie deaktiviere/verhindere ich da Open Relays?
 
Naja ich bin davon ausgegangen dass postfix standardmässig dabei ist.
Dann hast Du das How-To nicht gelesen.

2. Installation

The first thing we need to do is install the requisite software. The easiest way to do this is with yum from the command line:

yum install postfix dovecot system-switch-mail system-switch-mail-gnome

Aber es ist ja wie gesagt qmail installiert.
Meine Güte, dann änder das doch. Ob Du von qmail oder von postfix keine Ahnung hast ist doch egal. Und anhand des How-Tos bekommst Du einen relayfesten postfix auf Deine Maschine.
 

Back
Top