Simple Mail Server
Tips December 1st, 2008Simple Mail Server using POSTFIX, CYRUS-SASL, DOVECOT



install openssl
urpmi openssl
install cyrus-sasl
urpmi cyrus-sasl
edit file /etc/sasl2/smtpd.conf
vim /etc/sasl2/smtpd.conf
isinya seperti ini :
# SASL library configuration file for postfix
# all parameters are documented into:
# /usr/share/doc/cyrus-sasl/options.html
# The mech_list parameters list the sasl mechanisms to use,
# default being all mechs found.
#mech_list: plain login
# To authenticate using the separate saslauthd daemon, (e.g. for
# system or ldap users). Also see /etc/sysconfig/saslauthd.
#pwcheck_method: saslauthd
#saslauthd_path: /var/lib/sasl2/mux
# To authenticate against users stored in sasldb.
#pwcheck_method: auxprop
#auxprop_plugin: sasldb
#sasldb_path: /var/lib/sasl2/sasl.db
kemudian edit menjadi seperti ini :
# This sets smtpd to authenticate using the saslauthd daemon.
pwcheck_method:saslauthd
# This allows only plain, login, cram-md5 and digest-md5 as the authentication mechanisms.
mech_list: plain login cram-md5 digest-md5
install postfix
urpmi postfix
setelah itu salin file /etc/postfix/aliases.db ke /etc/aliases.db
cp /etc/postfix/aliases.db /etc/aliases.db
trus bikin certificate buat postfix
mkdir /etc/postfix/ssl
trus masuk
cd /etc/postfix/ssl/
kemudian proses buat nya, pake perintah ini :
openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
25 semi-random bytes loaded
Generating RSA private key, 1024 bit long modulus
....................++++++
............................++++++
e is 65537 (0x10001)
Enter pass phrase for smtpd.key:
masukin passwordnya, misal 123456
Verifying - Enter pass phrase for smtpd.key:
masukin passwordnya lagi, tadi pake 123456 (misal)
file hasil perintah diatas adalah smtpd.key letaknya di /etc/postfix/ssl
kemudian ubah mode file ke 600 pake perintah
chmod 600 smtpd.key
trus jalankan lagi openssl untuk menggenerate csr file dari smtpd.key
openssl req -new -key smtpd.key -out smtpd.csr
Enter pass phrase for smtpd.key: (masukkan password smtpd.key, tadi 123456)
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]:INA (heheheh, sori salah)
string is too long, it needs to be less than 2 bytes long
Country Name (2 letter code) [GB]:ID (yang bener ID untuk INDONESIA)
State or Province Name (full name) [Berkshire]:East Java
Locality Name (eg, city) [Newbury]:Blitar
Organization Name (eg, company) [My Company Ltd]:bayu mandriva
Organizational Unit Name (eg, section) []:headoffice
Common Name (eg, your name or your server's hostname) []:bayu
Email Address []:bayu@blitar.org
Please enter the following 'extra' attributes
to be sent with your certificate request
A challenge password []:654321
An optional company name []:bayu mandriva
trus jalankan perintah ini :
openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
Signature ok
subject=/C=ID/ST=East Java/L=Blitar/O=bayu mandriva/OU=headoffice/CN=bayu/emailAddress=bayu@blitar.org
Getting Private key
Enter pass phrase for smtpd.key: (masukin passwordnya tadi smtpd.key 123456)
trus perintah :
openssl rsa -in smtpd.key -out smtpd.key.unencrypted
Enter pass phrase for smtpd.key: (masukin password smtpd.key lagi 123456)
writing RSA key
trus perintah ini
mv -f smtpd.key.unencrypted smtpd.key
openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650
Generating a 1024 bit RSA private key
.................................++++++
.++++++
writing new private key to 'cakey.pem'
Enter PEM pass phrase: (isi password smtpd.key)
Verifying - Enter PEM pass phrase: (isi password smtpd.key)
-----
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter '.', the field will be left blank.
-----
Country Name (2 letter code) [GB]: ID (isi kaya sing tadi)
State or Province Name (full name) [Berkshire]:East Java
Locality Name (eg, city) [Newbury]:Blitar
Organization Name (eg, company) [My Company Ltd]:bayu mandriva
Organizational Unit Name (eg, section) []:head office
Common Name (eg, your name or your server's hostname) []:bayu mandriva
Email Address []:bayu@blitar.org
sekarang edit file main.cf di /etc/postfix/main.cf
vim /etc/postfix/main.cf
# User configurable parameters
#inet_interfaces = localhost
mynetworks_style = host
#delay_warning_time = 4h
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mail Server Q)
unknown_local_recipient_reject_code = 450
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
data_directory = /var/lib/postfix
mydomain = blitar.org
myhostname = mail.$mydomain
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated, permit_mynetworks, check_relay_domains
internet_interface = all
alias_maps = hash:/etc/aliases
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
sekarang konfigurasi saslauthd nya (gak wajib)
bikin file /etc/default/saslauthd, trus isinya seperti ini :
# This needs to be uncommented before saslauthd will be run automatically
START=yes
# You must specify the authentication mechanisms you wish to use.
# This defaults to "pam" for PAM support, but may also include
# "shadow" or "sasldb"
MECHANISMS=shadow
selesai dah… fiuh….
sekarang testing …. sekali netes cewe sekampung pada bunting …kekekekekeke
testing
jalankan postfix sama saslauthd nya
service postfix start
ato
/etc/init.d/postfix start
service saslauthd start
ato
/etc/init.d/saslauthd start
cek pake perintah netstat -pln
netstat -pln
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 8867/master
yah seperti itu lah kira-kira hasilnya
kemudian telnet buat ngetes nya
telnet localhost 25
Trying 127.0.0.1...
Connected to pop (127.0.0.1).
Escape character is '^]'.
220 mail.blitar.org ESMTP Postfix (2.5.1) (Mail Server Q)
ehlo localhost
250-mail.blitar.org
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN DIGEST-MD5
250-AUTH=LOGIN PLAIN DIGEST-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.
tuh kan sukses …. hehehehe
sekarang install buat pop3 or imap nya, kita pake dovecot aja sing gampang.
trus sekalian webmail nya, kita pake squirrelmail
urpmi dovecot
sama
urpmi squirrelmail
o iya sebelom di lanjut, kita edit dulu postfixnya supaya naruh email nya pake formay Maildir
edit file /etc/postfix/main.cf, dan tambahkan nilai berikut di akhir baris, trus simpan dan reload postfixnya
home_mailbox = Maildir/
selesai, sekarang masuk ke konfigurasi dovecot di file /etc/dovecot.conf
protocols = pop3 imap (jika kepengen laine silahkan baca)
pop3_uidl_format = %08Xu%08Xv
mail_location = maildir:~/Maildir (disesuaikan ma postfixnya)
kemudian jalankan dovecotnya
service dovecot start
ato
/etc/init.d/dovecot start
trus sekarang edit konfigurasi squirrelmailnya
/var/www/squirrelmail/conf/conf.pl
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1. Organization Preferences
2. Server Settings
3. Folder Defaults
4. General Options
5. Themes
6. Address Books
7. Message of the Day (MOTD)
8. Plugins
9. Database
10. Languages
D. Set pre-defined settings for specific IMAP servers
C Turn color off
S Save data
Q Quit
Command >>
pilih 2 untuk server settings
Server Settings
General
-------
1. Domain : pop
2. Invert Time : false
3. Sendmail or SMTP : Sendmail
A. Update IMAP Settings : localhost:143 (uw)
B. Change Sendmail Config : /usr/sbin/sendmail
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >>
trus pilih A buat update IMAP settings
IMAP Settings
--------------
4. IMAP Server : localhost
5. IMAP Port : 143
6. Authentication type : login
7. Secure IMAP (TLS) : false
8. Server software : uw
9. Delimiter : /
B. Change Sendmail Config : /usr/sbin/sendmail
H. Hide IMAP Server Settings
pilih 8 buat server software nya
Command >> 8
Each IMAP server has its own quirks. As much as we tried to stick
to standards, it doesn't help much if the IMAP server doesn't follow
the same principles. We have made some work-arounds for some of
these servers. If you would like to use them, please select your
IMAP server. If you do not wish to use these work-arounds, you can
set this to "other", and none will be used.
bincimap = Binc IMAP server
courier = Courier IMAP server
cyrus = Cyrus IMAP server
dovecot = Dovecot Secure IMAP server
exchange = Microsoft Exchange IMAP server
hmailserver = hMailServer
macosx = Mac OS X Mailserver
mercury32 = Mercury/32
uw = University of Washington's IMAP server
other = Not one of the above servers
[uw]:
isikan dovecot, soale kita kan pake dovecot
abis tu save, pake tekan S
R Return to Main Menu
C Turn color off
S Save data
Q Quit
Command >> S
Data saved in config.php
Press enter to continue...
Selesai deh… hepi ending :p
December 2nd, 2008 at 9:14 am
[...] Vote Simple Mail Server [...]
December 2nd, 2008 at 9:47 am
[...] Vote Simple Mail Server [...]
December 15th, 2008 at 2:04 pm
mas… mau nanya nih. saya baru aja install postfix sesuai petunjuk di atas tapi setelah saya coba telnet localhost 25 hasil laporan terakhir malah muncul
escape character is ‘^]’.
habis itu gak ada reaksi lagi lalu saya ketik ehlo localhost juga gak ada reaksi, kira2 dimana salahnya ya mas? padahal semua langkah2nya udah saya ikutin punya mas lho.
December 16th, 2008 at 9:21 am
hasil dari netstat -pln yaitu :
bash-3.2$ netstat -pln
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2273 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:36297 0.0.0.0:* LISTEN 4447/gnome-session
tcp 0 0 0.0.0.0:202 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN –
tcp 0 0 :::44544 :::* LISTEN 4447/gnome-session
tcp 0 0 :::202 :::* LISTEN –
tcp 0 0 :::139 :::* LISTEN –
tcp 0 0 :::445 :::* LISTEN –
udp 0 0 0.0.0.0:43523 0.0.0.0:* –
udp 0 0 192.168.0.1:137 0.0.0.0:* –
udp 0 0 192.168.1.254:137 0.0.0.0:* –
udp 0 0 0.0.0.0:137 0.0.0.0:* –
udp 0 0 192.168.0.1:138 0.0.0.0:* –
udp 0 0 192.168.1.254:138 0.0.0.0:* –
udp 0 0 0.0.0.0:138 0.0.0.0:* –
udp 0 0 0.0.0.0:44177 0.0.0.0:* –
udp 0 0 0.0.0.0:3130 0.0.0.0:* –
udp 0 0 0.0.0.0:67 0.0.0.0:* –
udp 0 0 0.0.0.0:5353 0.0.0.0:* –
raw 0 0 0.0.0.0:1 0.0.0.0:* 7 –
kalo saya cek di syslog maka ada pesan error seperti ini:
fatal: open database /etc/aliases.db: Invalid argument
Dec 16 04:14:12 santothomas postfix/master[22370]: warning: process /usr/lib/postfix/local pid 24308 exit status 1
Dec 16 04:14:12 santothomas postfix/master[22370]: warning: /usr/lib/postfix/local: bad command startup — throttling
Salahnya dimana?
December 16th, 2008 at 11:54 am
tapi waktu di start service-nya jawabannya malah OK. Sekarang saya udah dapat solusinya dari situs http://www.vavai.com/blog/index.php?/archives/67-Install-Email-Server-Linux-Postfix.html (bukan lagain ya mas soalnya lagi depresi aja)
thanks atas sarannya. mungkin dari awal saya salah karena file konfigurasinya ada yang belum ada jadi saya buat sendiri.
December 16th, 2008 at 1:44 pm
Sewaktu saya mengikuti tutorial dari link yang tadi sampai dibagian instalasi postfix dan konfigurasinya, lalu saya cek pake perintah telnet maka jawabannya bisa berhasil tetapi saya lanjutkan lagi dengan configurasi postfix, sasl, openssl sampe ke squirrelmail, malah gak bisa lagi sekarang.
Kalo saya cek pake perintah netstat -pln maka hasilnya sbb: (maaf kalo sangat panjang takutnya nanti gak sesuai)
bash-3.2$ netstat -pln
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:2273 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:36297 0.0.0.0:* LISTEN 4447/gnome-session
tcp 0 0 0.0.0.0:202 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN –
tcp 0 0 192.168.1.254:53 0.0.0.0:* LISTEN –
tcp 0 0 192.168.0.1:53 0.0.0.0:* LISTEN –
tcp 0 0 127.0.0.1:53 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:3128 0.0.0.0:* LISTEN –
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN –
tcp 0 0 127.0.0.1:953 0.0.0.0:* LISTEN –
tcp 0 0 :::44544 :::* LISTEN 4447/gnome-session
tcp 0 0 :::202 :::* LISTEN –
tcp 0 0 :::139 :::* LISTEN –
tcp 0 0 :::445 :::* LISTEN –
udp 0 0 0.0.0.0:43523 0.0.0.0:* –
udp 0 0 192.168.0.1:137 0.0.0.0:* –
udp 0 0 192.168.1.254:137 0.0.0.0:* –
udp 0 0 0.0.0.0:137 0.0.0.0:* –
udp 0 0 192.168.0.1:138 0.0.0.0:* –
udp 0 0 192.168.1.254:138 0.0.0.0:* –
udp 0 0 0.0.0.0:138 0.0.0.0:* –
udp 0 0 0.0.0.0:44177 0.0.0.0:* –
udp 0 0 0.0.0.0:49949 0.0.0.0:* –
udp 0 0 192.168.1.254:53 0.0.0.0:* –
udp 0 0 192.168.0.1:53 0.0.0.0:* –
udp 0 0 127.0.0.1:53 0.0.0.0:* –
udp 0 0 0.0.0.0:3130 0.0.0.0:* –
udp 0 0 0.0.0.0:67 0.0.0.0:* –
udp 0 0 0.0.0.0:5353 0.0.0.0:* –
raw 0 0 0.0.0.0:1 0.0.0.0:* 7 –
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 8191 4447/gnome-session /home/st_thomas/tmp/orbit-st_thomas/linc-115f-0-35ec4fe9cf772
unix 2 [ ACC ] STREAM LISTENING 318359 – private/cyrus-chroot
unix 2 [ ACC ] STREAM LISTENING 318363 – private/cyrus-inet
unix 2 [ ACC ] STREAM LISTENING 318263 – public/cleanup
unix 2 [ ACC ] STREAM LISTENING 7950 4447/gnome-session /tmp/.ICE-unix/4447
unix 2 [ ACC ] STREAM LISTENING 156450 – /var/lib/dansguardian/.dguardianipc
unix 2 [ ACC ] STREAM LISTENING 156451 – /var/lib/dansguardian/.dguardianurlipc
unix 2 [ ACC ] STREAM LISTENING 9755 4599/bonobo-activat /home/st_thomas/tmp/orbit-st_thomas/linc-11f7-0-57413f2cbcabf
unix 2 [ ACC ] STREAM LISTENING 7709 4445/gnome-keyring- /tmp/keyring-wDDr6h/socket
unix 2 [ ACC ] STREAM LISTENING 7966 4579/gconfd-2 /home/st_thomas/tmp/orbit-st_thomas/linc-11e3-0-11bd1c6c1e59
unix 2 [ ACC ] STREAM LISTENING 6402 – /var/lib/mysql/mysqlmanager.sock
unix 2 [ ACC ] STREAM LISTENING 7715 4445/gnome-keyring- /tmp/keyring-wDDr6h/ssh
unix 2 [ ACC ] STREAM LISTENING 4047 – /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 7721 4445/gnome-keyring- /tmp/keyring-wDDr6h/socket.pkcs11
unix 2 [ ACC ] STREAM LISTENING 6543 – /var/lib/mysql/mysql.sock
unix 2 [ ACC ] STREAM LISTENING 318270 – private/tlsmgr
unix 2 [ ACC ] STREAM LISTENING 10796 4639/beagled /home/st_thomas/tmp/orbit-st_thomas/linc-121f-0-729fedb913695
unix 2 [ ACC ] STREAM LISTENING 8493 4592/gnome-panel /home/st_thomas/tmp/orbit-st_thomas/linc-11f0-0-3b32ab161048
unix 2 [ ACC ] STREAM LISTENING 88113 5655/firefox /home/st_thomas/tmp/orbit-st_thomas/linc-1617-0-64332cf315e71
unix 2 [ ACC ] STREAM LISTENING 9265 4634/gnome-screensa /home/st_thomas/tmp/orbit-st_thomas/linc-1216-0-23dd6284bafed
unix 2 [ ACC ] STREAM LISTENING 318274 – private/rewrite
unix 2 [ ACC ] STREAM LISTENING 314266 637/beagled-helper /home/st_thomas/.beagle/socket-helper
unix 2 [ ACC ] STREAM LISTENING 318278 – private/bounce
unix 2 [ ACC ] STREAM LISTENING 318282 – private/defer
unix 2 [ ACC ] STREAM LISTENING 318287 – private/trace
unix 2 [ ACC ] STREAM LISTENING 318291 – private/verify
unix 2 [ ACC ] STREAM LISTENING 5177 – /var/run/gdm_socket
unix 2 [ ACC ] STREAM LISTENING 318295 – public/flush
unix 2 [ ACC ] STREAM LISTENING 5247 – @/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 41318 14881/pidgin /home/st_thomas/tmp/orbit-st_thomas/linc-3a21-0-3a64f16c62f0a
unix 2 [ ACC ] STREAM LISTENING 318299 – private/proxymap
unix 2 [ ACC ] STREAM LISTENING 318303 – private/proxywrite
unix 2 [ ACC ] STREAM LISTENING 318307 – private/smtp
unix 2 [ ACC ] STREAM LISTENING 318311 – private/relay
unix 2 [ ACC ] STREAM LISTENING 318315 – public/showq
unix 2 [ ACC ] STREAM LISTENING 5248 – /tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 318319 – private/error
unix 2 [ ACC ] STREAM LISTENING 318323 – private/retry
unix 2 [ ACC ] STREAM LISTENING 9746 4639/beagled /home/st_thomas/.beagle/socket
unix 2 [ ACC ] STREAM LISTENING 28299 13365/flock-bin /home/st_thomas/tmp/orbit-st_thomas/linc-3435-0-2803434143512
unix 2 [ ACC ] STREAM LISTENING 150926 27984/gvfsd-network /home/st_thomas/tmp/orbit-st_thomas/linc-6d50-0-254eba0d2d15
unix 2 [ ACC ] STREAM LISTENING 8338 4585/gnome-settings /home/st_thomas/tmp/orbit-st_thomas/linc-11e9-0-3b32ab178d9c4
unix 2 [ ACC ] STREAM LISTENING 318327 – private/discard
unix 2 [ ACC ] STREAM LISTENING 10649 5169/notification-d /home/st_thomas/tmp/orbit-st_thomas/linc-1431-0-30a2d9bcac122
unix 2 [ ACC ] STREAM LISTENING 318331 – private/local
unix 2 [ ACC ] STREAM LISTENING 318335 – private/virtual
unix 2 [ ACC ] STREAM LISTENING 9382 4603/nautilus /home/st_thomas/tmp/orbit-st_thomas/linc-11fb-0-296d971613124
unix 2 [ ACC ] STREAM LISTENING 150960 27986/gvfsd-smb-bro /home/st_thomas/tmp/orbit-st_thomas/linc-6d52-0-268b1587efdaa
unix 2 [ ACC ] STREAM LISTENING 8370 4586/metacity /home/st_thomas/tmp/orbit-st_thomas/linc-11ea-0-47e1863c9ab5a
unix 2 [ ACC ] STREAM LISTENING 4629 – /var/run/dbus/system_bus_socket
unix 2 [ ACC ] STREAM LISTENING 318581 – /var/run/dovecot/dict-server
unix 2 [ ACC ] STREAM LISTENING 318484 – /var/lib/sasl2/mux
unix 2 [ ACC ] STREAM LISTENING 10192 4898/gnome-terminal /home/st_thomas/tmp/orbit-st_thomas/linc-1322-0-7d23033e7a2f0
unix 2 [ ACC ] STREAM LISTENING 318592 – /var/run/dovecot/auth-worker.1356
unix 2 [ ACC ] STREAM LISTENING 318583 – /var/run/dovecot/login/default
unix 2 [ ACC ] STREAM LISTENING 9444 4633/evolution-alar /home/st_thomas/tmp/orbit-st_thomas/linc-1219-0-723df4fc2312c
unix 2 [ ACC ] STREAM LISTENING 9958 4693/mixer_applet2 /home/st_thomas/tmp/orbit-st_thomas/linc-1255-0-68c7779b66297
unix 2 [ ACC ] STREAM LISTENING 318339 – private/lmtp
unix 2 [ ACC ] STREAM LISTENING 9709 4607/beagle-search /home/st_thomas/tmp/orbit-st_thomas/linc-11ff-0-723df4fc98d7e
unix 2 [ ACC ] STREAM LISTENING 318343 – private/anvil
unix 2 [ ACC ] STREAM LISTENING 7866 4544/dbus-daemon @/tmp/dbus-ESR7szouHN
unix 2 [ ACC ] STREAM LISTENING 318347 – private/scache
unix 2 [ ACC ] STREAM LISTENING 5851 – /var/run/avahi-daemon/socket
unix 2 [ ACC ] STREAM LISTENING 7949 4447/gnome-session @/tmp/.ICE-unix/4447
unix 2 [ ACC ] STREAM LISTENING 318351 – private/cyrus-deliver
unix 2 [ ACC ] STREAM LISTENING 318355 – private/cyrus
Sedangkan saya jalankan perintah “telnet localhost 25″ maka muncul pesan seperti ini:
bash-3.2$ telnet localhost 25
Trying 127.0.0.1…
Connected to santothomas.ath.cx (127.0.0.1).
Escape character is ‘^]’.
Connection closed by foreign host.
Setelah itu saya mengecek di syslog maka hasilnya adalah seperti ini:
Dec 16 08:39:01 santothomas CROND[2114]: (root) CMD ([ -d /var/lib/php ] && find /var/lib/php/ -type f -mmin +$(/usr/lib/php/maxlifetime) -print0 | xargs -r -0 rm)
Dec 16 08:39:39 santothomas postfix/smtpd[2124]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
Dec 16 08:39:39 santothomas postfix/smtpd[2124]: fatal: no SASL authentication mechanisms
Dec 16 08:39:40 santothomas postfix/master[2022]: warning: process /usr/lib/postfix/smtpd pid 2124 exit status 1
Dec 16 08:39:40 santothomas postfix/master[2022]: warning: /usr/lib/postfix/smtpd: bad command startup — throttling
Salahnya dimana ya mas? Semuanya udah saya atur sesuai di tutorial ini mas.
December 16th, 2008 at 1:46 pm
Sewaktu saya mengikuti tutorial dari link yang tadi sampai dibagian instalasi postfix dan konfigurasinya, lalu saya cek pake perintah telnet maka jawabannya bisa berhasil tetapi saya lanjutkan lagi dengan configurasi postfix, sasl, openssl sampe ke squirrelmail, malah gak bisa lagi sekarang.
Kalo saya cek pake perintah netstat -pln maka hasilnya sbb: (maaf kalo sangat panjang takutnya nanti gak sesuai)
bash-3.2$ netstat -pln
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
==========================cut===============================
Sedangkan saya jalankan perintah “telnet localhost 25″ maka muncul pesan seperti ini:
bash-3.2$ telnet localhost 25
Trying 127.0.0.1…
Connected to santothomas.ath.cx (127.0.0.1).
Escape character is ‘^]’.
Connection closed by foreign host.
Setelah itu saya mengecek di syslog maka hasilnya adalah seperti ini:
Dec 16 08:39:01 santothomas CROND[2114]: (root) CMD ([ -d /var/lib/php ] && find /var/lib/php/ -type f -mmin +$(/usr/lib/php/maxlifetime) -print0 | xargs -r -0 rm)
Dec 16 08:39:39 santothomas postfix/smtpd[2124]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
Dec 16 08:39:39 santothomas postfix/smtpd[2124]: fatal: no SASL authentication mechanisms
Dec 16 08:39:40 santothomas postfix/master[2022]: warning: process /usr/lib/postfix/smtpd pid 2124 exit status 1
Dec 16 08:39:40 santothomas postfix/master[2022]: warning: /usr/lib/postfix/smtpd: bad command startup — throttling
Salahnya dimana ya mas? Semuanya udah saya atur sesuai di tutorial ini mas.
December 16th, 2008 at 2:26 pm
maksudnya belum diinstall gimana ya mas? ini saya jalankan perintahnya malah dibilang udah diinstall
bash-3.2$ sudo urpmi cyrus-sasl
Package cyrus-sasl-2.1.22-29mdv2009.0.i586 is already installed
saslauthd juga udah saya jalankan mas.
Bisa lewat IM mas, soalnya lagi bingung nih mas. YM saya di blueofheart@yahoo.com
Saya tunggu ya mas
December 16th, 2008 at 4:33 pm
kalo pake konfigurasi postfix standard sih udah bisa seperti yang saya ceritakan pada comment no. 7
saya coba jalankan perintah netstat untuk mengecek kata sasl maka hasilnya seperti ini
bash-3.2$ netstat -pln | grep sasl
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
unix 2 [ ACC ] STREAM LISTENING 330852 – /var/lib/sasl2/mux
sedangkan untuk konfigurasi main.cf dari punya mas ada yang tidak terdapat di dalamnya secara default yaitu:
smtp-filter_destination_concurrency_limit = 2
lmtp-filter_destination_concurrency_limit = 2
yang ada adalah
smtp_destination_concurrency_limit
lmtp_destination_concurrency_limit
jadi yang benar gimana ya mas?
December 16th, 2008 at 4:44 pm
jadi kalo gitu apakah perlu saya tambahkan langsung ke configurasi yang sebenarnya atau tambah line yang baru lagi?
December 16th, 2008 at 4:46 pm
yg lama di kasi tanda # dulu aja
December 16th, 2008 at 4:51 pm
Hasilnya masih tetap sama mas. Padahal semua configurasi main.cf sudah disesuaikan dengan punya mas. Lalu salah saya dimana lagi mas? Pesan kesalahan masih sama seperti yang tadi mas
December 16th, 2008 at 4:55 pm
saya mencoba mengirim email dari user st_thomas ke user tamu lewat squirrelmail tapi email tsb gak sampai dan error di syslog adalah sebagai berikut
Dec 16 11:51:00 santothomas dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 16 11:51:00 santothomas postfix/pickup[5117]: E914F16D0B: uid=79 from=
Dec 16 11:51:00 santothomas postfix/cleanup[5317]: E914F16D0B: message-id=
Dec 16 11:51:00 santothomas postfix/qmgr[5118]: E914F16D0B: from=, size=675, nrcpt=1 (queue active)
Dec 16 11:51:01 santothomas dovecot: IMAP(st_thomas): Disconnected: Logged out bytes=624/165
Dec 16 11:51:01 santothomas dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 16 11:51:01 santothomas dovecot: IMAP(st_thomas): Disconnected: Logged out bytes=156/1360
Dec 16 11:51:01 santothomas postfix/smtp[5323]: connect to santothomas.ath.cx[125.162.42.142]:25: Connection refused
Dec 16 11:51:01 santothomas postfix/smtp[5323]: E914F16D0B: to=, relay=none, delay=0.9, delays=0.1/0.01/0.79/0, dsn=4.4.1, status=deferred (connect to santothomas.ath.cx[125.162.42.142]:25: Connection refused)
Salahnya dimana ya mas?
December 16th, 2008 at 8:20 pm
mas..
boleh minta salinan main.cf sama dovecot.cfg nya ?
sapa tau isa bantu
kalo log diatas, cobanya jangan di pakein domain dulu, langsung ketik aja nama user
itu di local komputer kan ?
December 17th, 2008 at 6:57 am
untuk salinan main.cf dan dovecot.conf sudah saya letakkan di server yang bersangkutan. silahkan mas ambil di ftp://santothomas.ath.cx
sewaktu saya mencoba mengirim email dari squirrelmail, saya hanya mengetik nama user-nya saja dan nama domainnya tidak ada sama sekali tapi setelah diklik tombol sent lalu saya cek di bagian sent maka nama user tsb langsung otomatis ditambah nama domainnya mas. nama user itu memang di komputer yang bersangkutan.
December 17th, 2008 at 10:52 am
wah ebat ni mas suwandi, proteksine emang sip….
tes mail server postfix
telnet mail_server 25
ehlo test.com
mail from:
rcpt to:
DATA
Subject: test aja
ini test aja
.
quit
sambil cek /var/log/mail/
December 17th, 2008 at 11:18 am
Sudah bisa diatasin mas, rupanya harus install libsasl2-plug-plain baru bisa.
maksudnya hebat gimana mas? proteksine apanya ya mas, gak ngerti tuh.
pengiriman email antar user aja di server lokal juga gak bisa sampe., ada error seperti ini di syslog-nya
Dec 17 11:13:47 santothomas postfix/smtp[17007]: connect to santothomas.ath.cx[125.162.42.142]:25: Connection refused
Dec 17 11:13:47 santothomas postfix/smtp[17007]: 7BC2416CE4: to=, relay=none, delay=2151, delays=2150/0.02/0.85/0, dsn=4.4.1, status=deferred (connect to santothomas.ath.cx[125.162.42.142]:25: Connection refused)
lalu saya coba kirim dari gmail ke server saya malah muncul seperti ini mas
Dec 17 11:08:19 santothomas postfix/smtpd[16945]: connect from rv-out-0708.google.com[209.85.198.244]
Dec 17 11:08:21 santothomas postfix/smtpd[16945]: NOQUEUE: reject: RCPT from rv-out-0708.google.com[209.85.198.244]: 554 5.7.1 : Relay access denied; from= to= proto=ESMTP helo=
Dec 17 11:08:21 santothomas postfix/smtpd[16945]: disconnect from rv-out-0708.google.com[209.85.198.244]
Padahal imaps udah saya aktifkan di dovecot.conf, salah dimana lagi ya mas?
December 17th, 2008 at 11:20 am
sedangkan ini adalah tampilan error dari info.log dari /var/log/mail
Dec 17 11:10:13 santothomas postfix/smtpd[16945]: connect from santothomas.ath.cx[127.0.0.1]
Dec 17 11:10:45 santothomas postfix/smtpd[16945]: E1D7416CE2: client=santothomas.ath.cx[127.0.0.1]
Dec 17 11:12:58 santothomas dovecot: imap-login: Login: user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured
Dec 17 11:12:58 santothomas dovecot: IMAP(st_thomas): Disconnected: Logged out bytes=162/1268
Dec 17 11:13:36 santothomas postfix/smtpd[16945]: lost connection after DATA (60 bytes) from santothomas.ath.cx[127.0.0.1]
Dec 17 11:13:36 santothomas postfix/smtpd[16945]: disconnect from santothomas.ath.cx[127.0.0.1]
Dec 17 11:13:36 santothomas postfix/cleanup[16980]: E1D7416CE2: message-id=
Dec 17 11:13:46 santothomas postfix/qmgr[16722]: 7BC2416CE4: from=, size=690, nrcpt=1 (queue active)
Dec 17 11:13:47 santothomas postfix/smtp[17007]: connect to santothomas.ath.cx[125.162.42.142]:25: Connection refused
Dec 17 11:13:47 santothomas postfix/smtp[17007]: 7BC2416CE4: to=, relay=none, delay=2151, delays=2150/0.02/0.85/0, dsn=4.4.1, status=deferred (connect to santothomas.ath.cx[125.162.42.142]:25: Connection refused)
December 17th, 2008 at 11:27 am
ebat buat nanggulangi spam nya
by the way ni bukan salah imap mas… ini murni postfix nya
ada sing belom match tu konfigurasine
kalo semisal, di debug gimana mas?
gini maksute
di kasih tanda # mulai konfig yang atas or per bagian
trus restart
trus coba kirim
lakuin itu sampe semua konfig normal…
ntar pasti kliatan error konfig yg mana
dan jangan lupa pantau terus /var/log/mail/error…
December 17th, 2008 at 11:54 am
wah.. ini namanya kerjaan mas karena ada 59x baris, gawat lah mas. masa tidak ada cara yang lain?
masa sih ada penanggulangan buat spam? ada2 aja nih mas, padahal yang saya ambil itu adalah default dari main.cf baru saya setting sesuai yang mas berikan di dalam tutorial tersebut
December 17th, 2008 at 11:54 am
ni aq juga lagi install mdv 2009
hehehehe… biar sama ya mas…
soale sebelome sik tetep pake mdv spring 2008.1
December 17th, 2008 at 12:11 pm
pantes aja, mungkin aja beda tuh. kalo yang saya pake disini sih versi free. seharusnya tutorial punya mas ditulis bahwasannya diujicoba di distro apa dan versi berapa. Jangan lupa mas, file sasl-plain itu harus diinstall baru bisa jalan. saya tunggu responnya.
December 17th, 2008 at 1:27 pm
hehehehehhe
mohon mangap…. eh maaff…
la tak kirain wis tak tulisi ini di terapin di mandriva 2008.1 spring kok
eh ternyata sing nek sini belom ada, sing ada malah di
http://mandriva.linux.or.id
sukses la yaw…
December 17th, 2008 at 1:27 pm
punya saya udah sukses mas udah bisa kirim antar sesama user maupun ke email account yang lain misalnya yahoo, gmail dan hotmail cuman… (ada tapinya nih mas…)
dari email account tsb dikirim balik ke email saya malah gak bisa mas. Commentnya seperti ini mas
The IP you’re using to send mail is not
authorized 550-5.7.1 to send email directly to our servers. Please use the
SMTP 550-5.7.1 relay at your service provider instead
Apa yang harus dilakukan mas? coba mas email saya ke st_thomas@santothomas.ath.cx dan nanti saya coba reply bisa gak. thanks…
December 17th, 2008 at 1:38 pm
berhasil mas, isinya seperti ini
From: ag4203re@yahoo.co.id
Date: Wed, December 17, 2008 1:33 pm
To: undisclosed-recipients:;
mas coba nie yaa…
cuma to-nya kok bukan alamat saya ya mas?
December 17th, 2008 at 2:24 pm
Thanks ya atas kiriman email dari mas bayu sampe 2x tuh. sebentar lagi saya udah bisa mereply email mas +/- 30 menit gitu mas. thanks ya atas tutorialnya walaupun gak bisa membantu 100%.
December 17th, 2008 at 5:05 pm
nampaknya yahoo agak susah dikirim mas soalnya gak bisa masuk tapi kalo gmail dan hotmail mudah tapi dialokasikan ke folder junk/spam
Ada solusi gak?
December 17th, 2008 at 6:08 pm
mas… seandainya kalo kita ingin mengaksesnya lewat https, gimana ya?
December 17th, 2008 at 9:17 pm
yahoo pake dk-filter
jadi postfix di kasih dk-filter aja
dk = domain keys…
silahkan di baca dulu referensi nya
December 18th, 2008 at 4:13 pm
Maksudnya baca referensinya dari mana mas?
lalu gimana membuat email yang kita kirim tersebut ke yahoo, google, hotmail supaya tidak diletakkan di folder junk/spam?
January 23rd, 2009 at 7:49 pm
[...] trus jalankan perintah ini : openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtp… [...]
September 10th, 2009 at 2:42 pm
[...] trus jalankan perintah ini : openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtp… [...]
October 23rd, 2009 at 7:26 am
I am preparing for my 2nd interview later in the afternoon and this site really helped me a lot! ,