Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > HOWTO-Related Questions

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 23rd January 2008, 20:20
peacengell peacengell is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 10
Thanked 2 Times in 2 Posts
Default hi here is my dig

server:/# dig server.peacengell.org

; <<>> DiG 9.3.4 <<>> server.peacengell.org
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NXDOMAIN, id: 41024
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;server.peacengell.org. IN A

;; Query time: 285 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Wed Jan 23 08:09:56 2008
;; MSG SIZE rcvd: 39

server:/#



this is my /etc/hosts
127.0.0.1 localhost.localdomain localhost
192.168.2.110 server.peacengell.org server

# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
server:/#


this is netstat

server:/# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 *:40421 *:* LISTEN 2 483/rpc.statd
tcp 0 0 *:mysql *:* LISTEN 5 858/mysqld
tcp 0 0 *:sunrpc *:* LISTEN 1 872/portmap
tcp 0 0 *:auth *:* LISTEN 2 369/inetd
tcp 0 0 server.peacengel:domain *:* LISTEN 2 127/named
tcp 0 0 localhost.locald:domain *:* LISTEN 2 127/named
tcp 0 0 *:smtp *:* LISTEN 3 255/master
tcp 0 0 localhost.localdoma:953 *:* LISTEN 2 127/named
tcp 207 0 localhost.localdom:smtp localhost.localdo:45622 CLOSE_WAIT -
tcp 22 0 localhost.localdom:smtp localhost.localdo:51069 CLOSE_WAIT -
tcp6 0 0 *:domain *:* LISTEN 2 127/named
tcp6 0 0 *:ssh *:* LISTEN 2 458/sshd
tcp6 0 0 *:smtp *:* LISTEN 3 255/master
tcp6 0 0 ip6-localhost:953 *:* LISTEN 2 127/named
tcp6 0 1500 server.peacengell.o:ssh ::ffff:192.168.2.:61186 ESTABLISHED8 963/0
server:/#



This is ps axu


server:/# ps axu
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.0 0.0 1948 644 ? Ss Jan21 0:01 init [2]
root 2 0.0 0.0 0 0 ? S Jan21 0:00 [migration/0]
root 3 0.0 0.0 0 0 ? SN Jan21 0:00 [ksoftirqd/0]
root 4 0.0 0.0 0 0 ? S< Jan21 0:07 [events/0]
root 5 0.0 0.0 0 0 ? S< Jan21 0:00 [khelper]
root 6 0.0 0.0 0 0 ? S< Jan21 0:00 [kthread]
root 9 0.0 0.0 0 0 ? S< Jan21 0:01 [kblockd/0]
root 10 0.0 0.0 0 0 ? S< Jan21 0:00 [kacpid]
root 71 0.0 0.0 0 0 ? S< Jan21 0:00 [kseriod]
root 111 0.0 0.0 0 0 ? S Jan21 0:00 [pdflush]
root 112 0.0 0.0 0 0 ? S Jan21 0:11 [pdflush]
root 113 0.0 0.0 0 0 ? S< Jan21 0:00 [kswapd0]
root 114 0.0 0.0 0 0 ? S< Jan21 0:00 [aio/0]
root 559 0.0 0.0 0 0 ? S< Jan21 0:00 [khubd]
root 644 0.0 0.0 0 0 ? S< Jan21 0:00 [scsi_eh_0]
root 960 0.0 0.0 0 0 ? S< Jan21 0:02 [kjournald]
root 1138 0.0 0.0 2176 616 ? S<s Jan21 0:00 udevd --daemon
root 1412 0.0 0.0 0 0 ? S< Jan21 0:00 [kpsmoused]
root 1478 0.0 0.0 0 0 ? S< Jan21 0:00 [kgameportd]
root 1677 0.0 0.0 0 0 ? S< Jan21 0:00 [kmirrord]
root 1765 0.0 0.0 0 0 ? S< Jan21 0:00 [kjournald]
root 1767 0.0 0.0 0 0 ? S< Jan21 0:00 [kjournald]
root 1769 0.0 0.0 0 0 ? S< Jan21 0:02 [kjournald]
root 1771 0.0 0.0 0 0 ? S< Jan21 0:15 [kjournald]
daemon 1872 0.0 0.0 1684 364 ? Ss Jan21 0:00 /sbin/portmap
root 2109 0.0 0.0 1628 572 ? Ss Jan21 0:04 /sbin/syslogd -a /var/lib/named/dev/log
root 2115 0.0 0.0 1580 384 ? Ss Jan21 0:00 /sbin/klogd -x
bind 2127 0.0 0.3 30404 2908 ? Ssl Jan21 0:00 /usr/sbin/named -u bind -t /var/lib/named
root 2359 0.0 0.0 1572 560 ? Ss Jan21 0:00 /usr/sbin/acpid -c /etc/acpi/events -s /var/run/acpi
root 2369 0.0 0.0 1748 568 ? Ss Jan21 0:00 /usr/sbin/inetd
root 2448 0.0 0.1 7220 988 ? Ss Jan21 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/
root 2450 0.0 0.0 7220 548 ? S Jan21 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/
root 2451 0.0 0.0 7220 368 ? S Jan21 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/
root 2452 0.0 0.0 7220 368 ? S Jan21 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/
root 2453 0.0 0.0 7220 368 ? S Jan21 0:00 /usr/sbin/saslauthd -a pam -c -m /var/spool/postfix/
root 2458 0.0 0.1 4928 1092 ? Ss Jan21 0:00 /usr/sbin/sshd
statd 2483 0.0 0.0 1756 740 ? Ss Jan21 0:00 /sbin/rpc.statd
daemon 2497 0.0 0.0 1832 424 ? Ss Jan21 0:00 /usr/sbin/atd
root 2504 0.0 0.0 2192 752 ? Ss Jan21 0:00 /usr/sbin/cron
root 2535 0.0 0.0 1576 492 tty1 Ss+ Jan21 0:00 /sbin/getty 38400 tty1
root 2536 0.0 0.0 1576 496 tty2 Ss+ Jan21 0:00 /sbin/getty 38400 tty2
root 2537 0.0 0.0 1576 496 tty3 Ss+ Jan21 0:00 /sbin/getty 38400 tty3
root 2538 0.0 0.0 1572 492 tty4 Ss+ Jan21 0:00 /sbin/getty 38400 tty4
root 2541 0.0 0.0 1572 492 tty5 Ss+ Jan21 0:00 /sbin/getty 38400 tty5
root 2542 0.0 0.0 1576 496 tty6 Ss+ Jan21 0:00 /sbin/getty 38400 tty6
root 3255 0.0 0.1 4816 1624 ? Ss Jan21 0:14 /usr/lib/postfix/master
postfix 3257 0.0 0.1 4860 1612 ? S Jan21 0:00 qmgr -l -t fifo -u
root 5821 0.0 0.1 3664 1292 ? S Jan22 0:00 /bin/sh /usr/bin/mysqld_safe
mysql 5858 0.0 2.0 126364 16536 ? Sl Jan22 0:01 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/m
root 5859 0.0 0.0 2748 572 ? S Jan22 0:00 logger -p daemon.err -t mysqld_safe -i -t mysqld
root 7623 0.0 0.0 1748 608 ? Ss Jan22 0:00 inetd
postfix 8888 0.0 0.1 4824 1568 ? S 07:26 0:00 pickup -l -t fifo -u -c
root 8963 0.0 0.2 7700 2348 ? Ss 08:02 0:00 sshd: root@pts/0
root 8965 0.0 0.2 4020 1764 pts/0 Ss 08:03 0:00 -bash
root 9021 0.0 0.1 3428 992 pts/0 R+ 08:12 0:00 ps axu
server:/#
help me get this working is anything i done wrong must corect
Ask me anything just tell me what to do so u get infor of anything what to do what comand to use and post it here so u can see everything any log just let me know ok thanks bye tkare




one more thing on inetd
when i do
server:/# /etc/init.d/inetd restart
-bash: /etc/init.d/inetd: No such file or directory

but when i do
server:/# ps axu |grep inetd
root 2369 0.0 0.0 1748 568 ? Ss Jan21 0:00 /usr/sbin/inetd
root 7623 0.0 0.0 1748 608 ? Ss Jan22 0:00 inetd
root 9421 0.0 0.0 1748 608 ? Ss 10:23 0:00 /usr/sbin/inetd
root 9430 0.0 0.0 1640 380 pts/0 R+ 10:24 0:00 grep inetd

why
explain
thanks

Last edited by peacengell; 23rd January 2008 at 22:31.
Reply With Quote
Sponsored Links
  #12  
Old 24th January 2008, 15:34
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Please add
Code:
smtp_host_lookup = dns, native
to your /etc/postfix/main.cf and restart Postfix.

Quote:
one more thing on inetd
when i do
server:/# /etc/init.d/inetd restart
-bash: /etc/init.d/inetd: No such file or directory
What's the output of
Code:
ls -l /etc/init.d
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
peacengell (24th January 2008)
  #13  
Old 24th January 2008, 20:48
peacengell peacengell is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 10
Thanked 2 Times in 2 Posts
Default ls -l /etc/init.d output

server:~# ls -l /etc/init.d/
total 188
-rwxr-xr-x 1 root root 1850 2006-01-14 11:12 acpid
-rwxr-xr-x 1 root root 969 2006-01-03 07:15 atd
-rwxr-xr-x 1 root root 1621 2007-07-24 23:05 bind9
-rwxr-xr-x 1 root root 5089 2006-09-20 12:33 bootclean
-rwxr-xr-x 1 root root 2146 2006-09-12 22:30 bootlogd
-rwxr-xr-x 1 root root 1915 2006-09-20 12:27 bootmisc.sh
-rwxr-xr-x 1 root root 2930 2006-09-14 09:20 checkfs.sh
-rwxr-xr-x 1 root root 9548 2006-09-23 08:34 checkroot.sh
-rwxr-xr-x 1 root root 6110 2006-09-05 17:15 console-screen.sh
-rwxr-xr-x 1 root root 1761 2006-10-12 19:55 cron
-rwxr-xr-x 1 root root 7104 2007-01-18 17:45 exim4
-rwxr-xr-x 1 root root 7097 2007-09-21 17:28 fetchmail
-rwxr-xr-x 1 root root 5823 2007-07-30 21:39 glibc.sh
-rwxr-xr-x 1 root root 1360 2007-01-13 18:52 halt
-rwxr-xr-x 1 root root 1287 2006-09-12 22:31 hostname.sh
-rwxr-xr-x 1 root root 3886 2007-02-21 17:48 hwclock.sh
-rwxr-xr-x 1 root root 2518 2006-09-15 19:03 ifupdown
-rwxr-xr-x 1 root root 1046 2006-09-15 19:03 ifupdown-clean
-rwxr-xr-x 1 root root 3484 2006-10-16 04:38 keymap.sh
-rwxr-xr-x 1 root root 944 2006-09-12 22:31 killprocs
-rwxr-xr-x 1 root root 1375 2006-05-25 10:38 klogd
-rwxr-xr-x 1 root root 417 2006-08-08 23:38 libdevmapper1.02
-rwxr-xr-x 1 root root 1054 2006-09-06 22:43 makedev
-rwxr-xr-x 1 root root 1793 2006-11-14 11:12 module-init-tools
-rwxr-xr-x 1 root root 617 2006-01-15 11:04 mountall-bootclean.sh
-rwxr-xr-x 1 root root 1718 2006-09-12 22:30 mountall.sh
-rwxr-xr-x 1 root root 2206 2006-10-03 19:22 mountdevsubfs.sh
-rwxr-xr-x 1 root root 2394 2006-09-25 09:36 mountkernfs.sh
-rwxr-xr-x 1 root root 615 2006-01-15 11:04 mountnfs-bootclean.sh
-rwxr-xr-x 1 root root 2299 2006-11-26 13:35 mountnfs.sh
-rwxr-xr-x 1 root root 3668 2006-11-26 15:13 mtab.sh
-rwxr-xr-x 1 root root 6127 2008-01-05 11:57 mysql
-rwxr-xr-x 1 root root 2547 2008-01-05 11:57 mysql-ndb
-rwxr-xr-x 1 root root 1931 2008-01-05 11:57 mysql-ndb-mgm
-rwxr-xr-x 1 root root 2550 2007-01-06 15:36 networking
-rwxr-xr-x 1 root root 6644 2007-05-16 11:41 nfs-common
-rwxr-xr-x 1 root root 2324 2007-02-25 20:29 openbsd-inetd
-rwxr-xr-x 1 root root 1525 2006-12-22 08:15 portmap
-rwxr-xr-x 1 root root 2974 2007-03-21 11:17 postfix
-rwxr-xr-x 1 root root 997 2006-09-13 02:42 procps.sh
-rwxr-xr-x 1 root root 2948 2007-03-12 10:49 quota
-rwxr-xr-x 1 root root 1492 2007-03-12 10:49 quotarpc
-rwxr-xr-x 1 root root 8045 2006-11-27 22:23 rc
-rwxr-xr-x 1 root root 798 2006-09-28 18:25 rc.local
-rwxr-xr-x 1 root root 117 2005-12-02 17:44 rcS
-rw-r--r-- 1 root root 1386 2006-09-13 07:10 README
-rwxr-xr-x 1 root root 655 2006-09-22 15:21 reboot
-rwxr-xr-x 1 root root 994 2006-09-12 22:30 rmnologin
-rwxr-xr-x 1 root root 5937 2006-12-13 21:23 saslauthd
-rwxr-xr-x 1 root root 1376 2006-11-27 22:23 sendsigs
-rwxr-xr-x 1 root root 585 2006-09-12 22:32 single
-rw-r--r-- 1 root root 4187 2006-09-12 22:32 skeleton
-rwxr-xr-x 1 root root 1891 2007-03-05 16:38 ssh
-rwxr-xr-x 1 root root 520 2006-09-12 22:26 stop-bootlogd
-rwxr-xr-x 1 root root 730 2006-10-02 18:14 stop-bootlogd-single
-rwxr-xr-x 1 root root 2037 2006-05-25 10:38 sysklogd
-rwxr-xr-x 1 root root 8178 2006-12-19 10:21 udev
-rwxr-xr-x 1 root root 1252 2006-03-28 08:44 udev-mtab
-rwxr-xr-x 1 root root 3175 2006-11-25 09:22 umountfs
-rwxr-xr-x 1 root root 2128 2006-11-26 18:23 umountnfs.sh
-rwxr-xr-x 1 root root 1122 2006-09-30 15:37 umountroot
-rwxr-xr-x 1 root root 1815 2006-09-12 22:30 urandom
server:~#
Reply With Quote
  #14  
Old 25th January 2008, 17:05
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by peacengell
-rwxr-xr-x 1 root root 2324 2007-02-25 20:29 openbsd-inetd
Try
Code:
/etc/init.d/openbsd-inetd restart
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
peacengell (25th January 2008)
  #15  
Old 25th January 2008, 20:38
peacengell peacengell is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 10
Thanked 2 Times in 2 Posts
Default hi falko ur the best

hi falko thanks 4 any help yeah but the problem is the same as telnet localhost 25
adn here is the result
server:/# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
ehlo localhost


so i'm using vmware and bridged conection is there any config i need to change i use putty to administer my server it's work fine on the lan but not on lan
should i used any othe protocole lik nat or host-only or custom
please i need to learn these steps i wanna learn that why i ask a lot of question sorry for that but see u falko ur the bst in linux i seen ur webpage nice one ilike ti maybe if my go well i will try to hots one thanks in many ways and a milion thanks to howtoforge.com and all members as a hard work is been done here thanks a lot for all ur help


i re done the process from postfix here is all the command i used
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package dns
server:/# clear
server:/# apt-get install postfix libsas12 sasl12-bin libsas12-modules libdb3-util procmail
Reading package lists... Done
Building dependency tree... Done
postfix is already the newest version.
E: Couldn't find package libsas12
server:/# apt-get install libsas12
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package libsas12
--10:18:36-- http://libsas12/
=> `index.html'
Resolving libsas12... failed: Name or service not known.

FINISHED --10:18:38--
Downloaded: 0 bytes in 0 files
server:/# clear
server:/# dpkg-reconfigure postfix
Stopping Postfix Mail Transport Agent: postfix.
setting synchronous mail queue updates: false
setting myorigin
setting destinations: server.peacengell.org,localhost.peacengell.org,loc alhost.localdomain,localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8
setting mailbox_command
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all

Postfix is now set up with the changes above. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
server:/# clear
server:/#
server:/# postconf -e 'smtpd_sasl_local_domain ='
server:/# postconf -e 'smtpd_sasl_auth_enable = yes'
server:/# postconf -e 'smtpd_sasl_security_options = noanonymous'
server:/# postconf -e 'broken_sasl_auth_clients = yes'
server:/# postconf -e smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination'
>
>
server:/# postconf -e smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination'

>
server:/# postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination'

server:/# postconf -e 'inet_interfaces =all'
server:/# echo 'pwcheck_method: saslauthd' >> /etc/postfix/sasl/smtpd.conf
server:/# echo 'mech_list: plain login' >> /etc/p
pam.conf passwd perl/ ppp/ protocols python2.4/
pam.d/ passwd- postfix/ profile python/
server:/# echo 'mech_list: plain login' >> /etc/postfix/s
sasl/ ssl/
server:/# echo 'mech_list: plain login' >> /etc/postfix/sasl/smtpd.conf
server:/# mkdir /etc/postfix/ssl
mkdir: cannot create directory `/etc/postfix/ssl': File exists
server:/# cd /etc/postfix/s
sasl/ ssl/
server:/# cd /etc/postfix/ssl/
server:/etc/postfix/ssl# openssl genrsa -des3 -rand /etc/hosts -out smtpd.key1024
292 semi-random bytes loaded
Generating RSA private key, 512 bit long modulus
...++++++++++++
................++++++++++++
e is 65537 (0x10001)
Enter pass phrase for smtpd.key1024:
4499:error:28069065:lib(40):UI_set_result:result too small:ui_lib.c:849:You must type in 4 to 8191 characters
Enter pass phrase for smtpd.key1024:
Verifying - Enter pass phrase for smtpd.key1024:
server:/etc/postfix/ssl# chmod 600 smtpd.key
server:/etc/postfix/ssl# openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
Signature ok
subject=/C=IE/ST=dublin/L=dublin/O=learning/OU=peace/CN=peacengell.org/emailAddress=peacengell@gmail.com
Getting Private key
server:/etc/postfix/ssl# openssl rsa -in smtpd.key -out smtp.key.unecrypted
writing RSA key
server:/etc/postfix/ssl# mv -f smtpd.key.unecrypted smtpd.key
mv: cannot stat `smtpd.key.unecrypted': No such file or directory
server:/etc/postfix/ssl# openssl req -new -x509 -extentions v3_ca -keyout cakey.pem -out acert.pem -days 3650
unknown option -extentions
req [options] <infile >outfile
where options are
-inform arg input format - DER or PEM
-outform arg output format - DER or PEM
-in arg input file
-out arg output file
-text text form of request
-pubkey output public key
-noout do not output REQ
-verify verify signature on REQ
-modulus RSA modulus
-nodes don't encrypt the output key
-engine e use engine e, possibly a hardware device
-subject out

Last edited by peacengell; 26th January 2008 at 00:58.
Reply With Quote
  #16  
Old 26th January 2008, 01:02
peacengell peacengell is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 10
Thanked 2 Times in 2 Posts
Default i redone the process postfix

here is all the comand i use any mistake let me know
thanks help please
server:/# apt-get install postfix libsas12 sasl12-bin libsas12-modules libdb3-util procmail
Reading package lists... Done
Building dependency tree... Done
postfix is already the newest version.
E: Couldn't find package libsas12
server:/# apt-get install libsas12
Reading package lists... Done
Building dependency tree... Done
E: Couldn't find package libsas12
--10:18:36-- http://libsas12/
=> `index.html'
Resolving libsas12... failed: Name or service not known.

FINISHED --10:18:38--
Downloaded: 0 bytes in 0 files
server:/# clear
server:/# dpkg-reconfigure postfix
Stopping Postfix Mail Transport Agent: postfix.
setting synchronous mail queue updates: false
setting myorigin
setting destinations: server.peacengell.org,localhost.peacengell.org,loc alhost.localdomain,localhost
setting relayhost:
setting mynetworks: 127.0.0.0/8
setting mailbox_command
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
setting inet_protocols: all

Postfix is now set up with the changes above. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
server:/# clear
server:/#
server:/# postconf -e 'smtpd_sasl_local_domain ='
server:/# postconf -e 'smtpd_sasl_auth_enable = yes'
server:/# postconf -e 'smtpd_sasl_security_options = noanonymous'
server:/# postconf -e 'broken_sasl_auth_clients = yes'
server:/# postconf -e smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination'
>
>
server:/# postconf -e smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination'

>
server:/# postconf -e 'smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination'

server:/# postconf -e 'inet_interfaces =all'
server:/# echo 'pwcheck_method: saslauthd' >> /etc/postfix/sasl/smtpd.conf
server:/# echo 'mech_list: plain login' >> /etc/p
pam.conf passwd perl/ ppp/ protocols python2.4/
pam.d/ passwd- postfix/ profile python/
server:/# echo 'mech_list: plain login' >> /etc/postfix/s
sasl/ ssl/
server:/# echo 'mech_list: plain login' >> /etc/postfix/sasl/smtpd.conf
server:/# mkdir /etc/postfix/ssl
mkdir: cannot create directory `/etc/postfix/ssl': File exists
server:/# cd /etc/postfix/s
sasl/ ssl/
server:/# cd /etc/postfix/ssl/
server:/etc/postfix/ssl# openssl genrsa -des3 -rand /etc/hosts -out smtpd.key1024
292 semi-random bytes loaded
Generating RSA private key, 512 bit long modulus
...++++++++++++
................++++++++++++
e is 65537 (0x10001)
Enter pass phrase for smtpd.key1024:
4499:error:28069065:lib(40):UI_set_result:result too small:ui_lib.c:849:You must type in 4 to 8191 characters
Enter pass phrase for smtpd.key1024:
Verifying - Enter pass phrase for smtpd.key1024:
server:/etc/postfix/ssl# chmod 600 smtpd.key
server:/etc/postfix/ssl# openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
Signature ok
subject=/C=IE/ST=dublin/L=dublin/O=learning/OU=peace/CN=peacengell.org/emailAddress=peacengell@gmail.com
Getting Private key
server:/etc/postfix/ssl# openssl rsa -in smtpd.key -out smtp.key.unecrypted
writing RSA key
server:/etc/postfix/ssl# mv -f smtpd.key.unecrypted smtpd.key
mv: cannot stat `smtpd.key.unecrypted': No such file or directory
server:/etc/postfix/ssl# openssl req -new -x509 -extentions v3_ca -keyout cakey.pem -out acert.pem -days 3650
unknown option -extentions
req [options] <infile >outfile
where options are
-inform arg input format - DER or PEM
-outform arg output format - DER or PEM
-in arg input file
-out arg output file
-text text form of request
-pubkey output public key
-noout do not output REQ
-verify verify signature on REQ
-modulus RSA modulus
-nodes don't encrypt the output key
-engine e use engine e, possibly a hardware device
-subject output the request's subject
-passin private key password source
-key file use the private key contained in file
-keyform arg key file format
-keyout arg file to send the key to
-rand file:file:...
load the file (or the files in the directory) into
the random number generator
-newkey rsa:bits generate a new RSA key of 'bits' in size
-newkey dsa:file generate a new DSA key, parameters taken from CA in 'file'
-newkey ec:file generate a new EC key, parameters taken from CA in 'file'
-[digest] Digest to sign with (md5, sha1, md2, mdc2, md4)
-config file request template file.
-subj arg set or modify request subject
-multivalue-rdn enable support for multivalued RDNs
-new new request.
-batch do not ask anything during request generation
-x509 output a x509 structure instead of a cert. req.
-days number of days a certificate generated by -x509 is valid for.
-set_serial serial number to use for a certificate generated by -x509.
-newhdr output "NEW" in the header lines
-asn1-kludge Output the 'request' in a format that is wrong but some CA's
have been reported as requiring
-extensions .. specify certificate extension section (override value in config file)
-reqexts .. specify request extension section (override value in config file)
-utf8 input characters are UTF8 (default ASCII)
-nameopt arg - various certificate name options
-reqopt arg - various request text options

server:/etc/postfix/ssl# postconf -e 'smtpd_tls_auth_only = no'
server:/etc/postfix/ssl# postconf -e 'smtpd_use_tls = yes'
server:/etc/postfix/ssl# postconf -e 'smtpd_use_tls = yes'
server:/etc/postfix/ssl# postconf -e 'smtpd_tls_note_starttls_offer = yes'
server:/etc/postfix/ssl# postconf -e 'smtpd_tls_key_file = /etc/postfic/ssl/smtpd.key'
server:/etc/postfix/ssl# postconf -e 'smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt'
server:/etc/postfix/ssl# postconf -e 'smtpd_tls_CAfile = /etc/postfix/ssl/postfix/ssl/cacert.pem'
server:/etc/postfix/ssl# postconf -e 'smtpd_tls_loglevel = 1'
server:/etc/postfix/ssl# postconf -e 'smtpd_tls_received_header = yes '
server:/etc/postfix/ssl# postconf -e 'smtpd_tls_session_cache_timeout = 3600s'
server:/etc/postfix/ssl# postconf -e 'tls_random_source = dev:/dev/urandom'
server:/etc/postfix/ssl# postconf -e 'myhostname = server.peacengell.org'
server:/etc/postfix/ssl# cat /etc/postfix/ma
main.cf master.cf
server:/etc/postfix/ssl# cat /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfic/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtp_host_lookup = dns, native
myhostname = server.peacengell.org
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
mydestination = server.peacengell.org,localhost.peacengell.org,loc alhost.localdomain,localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_option = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtpd_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/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
smtpd_sasl_security_options = noanonymous
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
server:/etc/postfix/ssl#
server:/etc/postfix/ssl# /etc/init.d/postfix restart
Stopping Postfix Mail Transport Agent: postfix.
Starting Postfix Mail Transport Agent: postfix.
server:/etc/postfix/ssl# mkdir -p /var/spool/postfix/var/run/saslauthd
server:/etc/postfix/ssl# vi /etc/de
debconf.conf debian_version default/ deluser.conf
server:/etc/postfix/ssl# vi /etc/default/s
saslauthd ssh syslogd syslogd.back
server:/etc/postfix/ssl# vi /etc/default/saslauthd
server:/etc/postfix/ssl# /etc/init.d/saslauthd start
server:/etc/postfix/ssl# /etc/init.d/saslauthd restart
Restarting SASL Authentication Daemon: saslauthd.
server:/etc/postfix/ssl# telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
ehlo localhost
Reply With Quote
  #17  
Old 26th January 2008, 19:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by peacengell
here is all the comand i use any mistake let me know
thanks help please
server:/# apt-get install postfix libsas12 sasl12-bin libsas12-modules libdb3-util procmail
The correct command is
Code:
apt-get install postfix libsasl2 sasl2-bin libsasl2-modules libdb3-util procmail
It's an l, not a 1.
You can prevent such misunderstandings by simply copy & paste from the tutorial.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
The Following User Says Thank You to falko For This Useful Post:
peacengell (26th January 2008)
  #18  
Old 26th January 2008, 22:43
peacengell peacengell is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 10
Thanked 2 Times in 2 Posts
Default hi but the telnet not working

telnet localhost is not working the same any option
or should i reinstall it from the begining let me know thanks for ur help
Reply With Quote
  #19  
Old 27th January 2008, 14:46
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,711
Thanks: 1,899
Thanked 2,702 Times in 2,545 Posts
Default

Quote:
Originally Posted by peacengell
telnet localhost is not working the same any option
What errros do you have no in your mail log? What's in /etc/default/saslauthd and /etc/postfix/sasl/smtpd.conf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #20  
Old 27th January 2008, 22:02
peacengell peacengell is offline
Member
 
Join Date: Jan 2008
Posts: 37
Thanks: 10
Thanked 2 Times in 2 Posts
 
Default mail log

Jan 25 13:48:49 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 13:49:49 server postfix/smtpd[28084]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 13:49:49 server postfix/smtpd[28084]: fatal: SASL per-process initializat ion failed
Jan 25 13:49:50 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 28084 exit status 1
Jan 25 13:49:50 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 13:50:50 server postfix/smtpd[28204]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 13:50:50 server postfix/smtpd[28204]: fatal: SASL per-process initializat ion failed
Jan 25 13:50:51 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 28204 exit status 1
Jan 25 13:50:51 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 13:51:51 server postfix/smtpd[28324]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 13:51:51 server postfix/smtpd[28324]: fatal: SASL per-process initializat ion failed
Jan 25 13:51:52 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 28324 exit status 1
Jan 25 13:51:52 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 13:52:52 server postfix/smtpd[28444]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 13:52:52 server postfix/smtpd[28444]: fatal: SASL per-process initializat ion failed
Jan 25 13:52:53 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 28444 exit status 1
Jan 25 13:52:53 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 13:53:53 server postfix/smtpd[28563]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 13:53:53 server postfix/smtpd[28563]: fatal: SASL per-process initializat ion failed
Jan 25 13:53:54 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 28563 exit status 1
Jan 25 13:53:54 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 13:54:54 server postfix/smtpd[28682]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 13:54:54 server postfix/smtpd[28682]: fatal: SASL per-process initializat ion failed
Jan 25 13:54:55 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 28682 exit status 1
Jan 25 13:54:55 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 13:55:56 server postfix/smtpd[28802]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 13:55:56 server postfix/smtpd[28802]: fatal: SASL per-process initializat ion failed
Jan 25 13:55:57 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 28802 exit status 1
Jan 25 13:55:57 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 13:56:57 server postfix/smtpd[28922]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 13:56:57 server postfix/smtpd[28922]: fatal: SASL per-process initializat ion failed
Jan 25 13:56:58 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 28922 exit status 1
Jan 25 13:56:58 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 13:57:58 server postfix/smtpd[29042]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 13:57:58 server postfix/smtpd[29042]: fatal: SASL per-process initializat ion failed
Jan 25 13:57:59 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 29042 exit status 1
Jan 25 13:57:59 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 13:58:59 server postfix/smtpd[29162]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 13:58:59 server postfix/smtpd[29162]: fatal: SASL per-process initializat ion failed
Jan 25 13:59:00 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 29162 exit status 1
Jan 25 13:59:00 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 14:00:00 server postfix/smtpd[29281]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 14:00:00 server postfix/smtpd[29281]: fatal: SASL per-process initializat ion failed
Jan 25 14:00:01 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 29281 exit status 1
Jan 25 14:00:01 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 14:01:01 server postfix/smtpd[29400]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 14:01:01 server postfix/smtpd[29400]: fatal: SASL per-process initializat ion failed
Jan 25 14:01:02 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 29400 exit status 1
Jan 25 14:01:02 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 14:02:02 server postfix/smtpd[29520]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 14:02:02 server postfix/smtpd[29520]: fatal: SASL per-process initializat ion failed
Jan 25 14:02:03 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 29520 exit status 1
Jan 25 14:02:03 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Jan 25 14:03:03 server postfix/smtpd[29640]: warning: SASL per-process initializ ation failed: generic failure
Jan 25 14:03:03 server postfix/smtpd[29640]: fatal: SASL per-process initializat ion failed
Jan 25 14:03:04 server postfix/master[9108]: warning: process /usr/lib/postfix/s mtpd pid 29640 exit status 1
Jan 25 14:03:04 server postfix/master[9108]: warning: /usr/lib/postfix/smtpd: ba d command startup -- throttling
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Perfect setup Debian Etch ISPConfig - DNS Server kdclaver Installation/Configuration 16 28th December 2007 01:39
The Perfect Xen 3.1.0 Setup For Debian Etch (i386) ko0nz HOWTO-Related Questions 8 13th November 2007 20:48
The Perfect Setup - Debian Etch (Debian 4.0) mysql question paul55 HOWTO-Related Questions 9 4th November 2007 11:28
The Perfect Setup - Debian Etch: smart_host bidevi Server Operation 14 18th August 2007 19:11
Do you have The Perfect Setup - Debian Etch ? Dekalb Installation/Configuration 2 2nd June 2007 00:16


All times are GMT +2. The time now is 19:40.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.