Merhabalar bu konuda çeşitli sitelerde oldukça çok döküman ve anlatımlar var fakat ben bu problemi hala çözebilmiş değilim. Çünkü anlatımlara göre;
Sunucuya login olduktan sonra;
root# cd /etc/xinetd.d/
root# nano /etc/services
yazarak services kısmımıza nano editor’u sayesinde giriş yapıyoruz. Aşağıda bulunan tcp ve udp satırlarını herhangi bir yere ekliyoruz.
smtp_psa_new 587/tcp mail
smtp_psa_new 587/udp mail
daha sonra ctrl+x ve y tuşları ile kaydedip services kısmınızdan çıkıyoruz.
root# cp smtp_psa smtp_psa_new
komutu ile smtp_psa dosyamızı kopyalıyoruz
root# nano smtp_psa_new
ile yeni kopyalamış olduğumuz dosyamıza giriş yaparak ilk satırda bulunan smtp_psa satırını smtp_psa_new olarak değiştiriyoruz.
Örnek Görünüm:
service smtp_psa_new
{
socket_type = stream
protocol = tcp
wait = no
disable = no
user = root
instances = UNLIMITED
server = /var/qmail/bin/tcp-env
server_args = /usr/sbin/rblsmtpd -r bl.spamcop.net /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
}
Yeniden nano editorumuzu yukarı yaptığımız gibi kaydedip çıkıyoruz.
Ve son olarak,
root# /etc/init.d/xinetd restart
komutu ile servisimizi yeniden başlatıyoruz ve işlemimiz tamamdır.
root# netstat -anp | grep xinetd
komutu ile 587 portumuzun aktif olup olmadığını local ortamda test edebiliriz.
-----------------------------------------------------------------------------
Plesk 10 İçin Anlatıyorum Çözüm Aşağıdaki Gibidir;
Server Management Altında;
Tools & Utilities
Updates Tıklıyoruz ve Sonrasında ;
https://sunucu_ip_adresi:8447/select_components.html
Sonrasında;
Different mailservers
* Qmail mailserver
* Postfix mailserver *
2 nci Seçeneği yani Postfix mailserver'ı Seçiyoruz.
Sonrasında;
Continue Update Diyoruz ve Update İşlemi Gerçekleştiriliyor.
Bu İşlem Bittikten Sonra Postfix 587 Port Aktif Etmek Gerekiyor Devam Edelim;
Postfix mail server de alternatif 587 portunu aktif etmek için aşağıdaki işlemleri uygulayınız.
Öncelikle SSH ile portfix mail yazılımının bulunduğu makineye bağlanınız. Ve aşağıdaki işlemleri sırasıyla yapınız.
Editor program yardımıyla master.cf dosyasına giriş yapınız.
nano /etc/postfix/master.cf
master.cf dosyasına giriş yaptıktan sonra. Aşağıdaki satırı bulunuz.
smtp inet n – n – – smtpd
Satırı bulduktan sonra hemen altına aşağıdaki satırı aynen ekleyiniz.
587 inet n – n – – smtpd
Gerekli satırı ekledikten sonra master.cf dosyasını kaydederek master.cf dosyasından çıkınız.
master.cf dosyasından alternatif olarak 587 portunu aktif ettik, 587 portunu aktif olarak kullanabilmemiz için postfix mail server imizi restart edilmesi gerekmektedir..
Aşağıdaki komutu kullanarak postfix mail server mize restart işlemini uygulayabiliriz.
/etc/init.d/postfix restart
Restart işlemini de yaptıktan sonra 587 portumuz aktif duruma geldi. Bunu da test etmek için “telnet mailserverip 587″ yazarak test edebiliriz. Eğer aşağıdaki gibi yanıt alıyor isek 587 portumuz problemsiz bir şekilde çalışıyor demektedir.
SSH'da Görüntü Aşağıdaki Gibi Olmalıdır.
[root@gas ~]# telnet localhost 587
Trying 127.0.0.1…
Connected to localhost.localdomain (127.0.0.1).
Escape character is ‘^]’.
220 mail.garantialsat.com ESMTP
[root@postfix~]# telnet localhost 587
Trying 127.0.0.1…
Connected to localhost.localdomain (127.0.0.1).
Escape character is ‘^]’.
220 mail.domainadi.com ESMTP
-----------------------------------------------------------------------
Kendi Sunucumun Ayarlarını Aynen Yapıştırıyorum
-----------------------------------------------------------------------
#
# Postfix master process configuration file. For details on the format
# of the file, see the master(5) manual page (command: "man 5 master").
#
# ================================================== ========================
# service type private unpriv chroot wakeup maxproc command + args
# (yes) (yes) (yes) (never) (100)
# ================================================== ========================
smtp inet n - n - - smtpd -o smtpd_proxy_filter=127.0.0.1:10025
#submission inet n - n - - smtpd
# -o smtpd_enforce_tls=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#587 inet n - n - - smtpd Bu Satırda 587 ile başlamıyordu normalde smtp yazıyordu ben değiştirerek 587 yaptım
587 inet n - n - - smtpd
# -o smtpd_tls_wrappermode=yes
# -o smtpd_sasl_auth_enable=yes
# -o smtpd_client_restrictions=permit_sasl_authenticate d,reject
#628 inet n - n - - qmqpd
pickup fifo n - n 60 1 pickup -o content_filter=smtp:127.0.0.1:10027
cleanup unix n - n - 0 cleanup
qmgr fifo n - n 1 1 qmgr
#qmgr fifo n - n 300 1 oqmgr
tlsmgr unix - - n 1000? 1 tlsmgr
rewrite unix - - n - - trivial-rewrite
bounce unix - - n - 0 bounce
defer unix - - n - 0 bounce
trace unix - - n - 0 bounce
verify unix - - n - 1 verify
flush unix n - n 1000? 0 flush
proxymap unix - - n - - proxymap
smtp unix - - n - - smtp
#587 inet n - n - - smtp
# When relaying mail as backup MX, disable fallback_relay to avoid MX loops
relay unix - - n - - smtp
-o fallback_relay=
# -o smtp_helo_timeout=5 -o smtp_connect_timeout=5
showq unix n - n - - showq
error unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
#
# ================================================== ==================
# Interfaces to non-Postfix software. Be sure to examine the manual
# pages of the non-Postfix software to find out what options it wants.
#
# Many of the following services use the Postfix pipe(8) delivery
# agent. See the pipe(8) man page for information about ${recipient}
# and other message envelope options.
# ================================================== ==================
#
# maildrop. See the Postfix MAILDROP_README file for details.
# Also specify in main.cf: maildrop_destination_recipient_limit=1
#
maildrop unix - n n - - pipe
flags=DRhu user=vmail argv=/usr/local/bin/maildrop -d ${recipient}
#
# The Cyrus deliver program has changed incompatibly, multiple times.
#
old-cyrus unix - n n - - pipe
flags=R user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -m ${extension} ${use$
# Cyrus 2.1.5 (Amos Gouaux)
# Also specify in main.cf: cyrus_destination_recipient_limit=1
cyrus unix - n n - - pipe
user=cyrus argv=/usr/lib/cyrus-imapd/deliver -e -r ${sender} -m ${extension} $
#
# See the Postfix UUCP_README file for configuration details.
#
uucp unix - n n - - pipe
flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient)
#
# Other external delivery methods.
#
ifmail unix - n n - - pipe
flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient)
bsmtp unix - n n - - pipe
flags=Fq. user=foo argv=/usr/local/sbin/bsmtp -f $sender $nexthop $recipient
plesk_virtual unix - n n - - pipe flags=DORhu user=popuseropuser argv=/usr/li$
mailman unix - n n - - pipe flags=R user=mailman:mailman argv=/usr/lib/plesk-9.$
127.0.0.1:10025 inet n n n - - spawn user=mhandlers-user argv=/usr/lib/plesk-9.$
127.0.0.1:10026 inet n - n - - smtpd -o smtpd_client_restrictions= -o smtpd_h$
127.0.0.1:10027 inet n n n - - spawn user=mhandlers-user argv=/usr/lib/plesk-9.$
plesk_saslauthd unix y y n - 1 plesk_saslauthd status=5 listen=6 dbpath=/var/sp$
smtps inet n - n - - smtpd -o smtpd_proxy_filter=127.0.0.1:100587 -o smtpd_tls_$ Normalde Bu Satırda da 100587 olan port 10025 idi ben değiştirerek 100587 yaptım
Bir Kereliğine
1-) sudo iptables -t nat -A PREROUTING -p tcp --dport 25 -i eth0 -j REDIRECT --to-ports 587
2-) A-) sudo echo "# Port redirection from port 587 to 25, on eth0
2-) B-) /sbin/iptables -t nat -A PREROUTING -p tcp --dport 25 -i eth0 -j REDIRECT --to-ports 587" >> /etc/rc.local
Bunun Haricinde Herhangi Birşey Yapmadım Yok Ben Yapamadım Diyen Olursa Yardımcı Olurum.