I want to set up a mail server in one of the Ubuntu Fiesty Server.I have followed the following steps as for now:
#apt-get install postfix
-----------------
---------------
Package mail-transport-agent is not installed.
Package ssmtp which provides mail-transport-agent is not installed.
Package sendmail-bin which provides mail-transport-agent is to be removed.
Removing sendmail-bin ...
Stopping Mail Transport Agent: sendmail.
Stopping Mail Transport Agent: sendmail.
Selecting previously deselected package postfix.
(Reading database ... 119161 files and directories currently installed.)
Unpacking postfix (from .../postfix_2.2.10-1ubuntu0.1_i386.deb) ...
Setting up postfix (2.2.10-1ubuntu0.1) ...
Adding group `postfix' (119)...
Done.
Adding system user `postfix'...
Adding new user `postfix' (114) with group `postfix'.
Not creating home directory `/var/spool/postfix'.
Creating /etc/postfix/dynamicmaps.cf
Adding tcp map entry to /etc/postfix/dynamicmaps.cf
Adding group `postdrop' (120)...
Done.
setting myhostname: DICEX.logicacmg.com
setting alias maps
setting alias database
mailname is not a fully qualified domain name. Not changing /etc/mailname.
setting destinations: DICEX, DICEX.logicacmg.com, localhost.logicacmg.com, local
setting relayhost:
setting mynetworks: 127.0.0.0/8
setting mailbox_command
setting mailbox_size_limit: 0
setting recipient_delimiter: +
setting inet_interfaces: all
Postfix is now set up with a default configuration. 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
-----------------------------------------------------
admin@DICEX:~$ cd /etc/
admin@DICEX:/etc$ ls -la sh*
-rw-r----- 1 root shadow 2119 Jul 20 12:09 shadow
-rw------- 1 root root 2119 Jul 20 12:09 shadow-
-rw-r--r-- 1 root root 212 Feb 8 17:56 shells
admin@DICEX:/etc$ cd postfix/
admin@DICEX:/etc/postfix$ ls
dynamicmaps.cf main.cf master.cf post-install postfix-files postfix-script
admin@DICEX:/etc/postfix$ sudo vi main.cf
admin@DICEX:/etc/postfix$ hostname
DICEX
admin@DICEX:/etc/postfix$ vi /etc/hosts
admin@DICEX:/etc/postfix$ sudo vi main.cf
admin@DICEX:/etc/postfix$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 DICEX.logicacmg.com ESMTP Postfix (Ubuntu)
EHLO mail.DICEX.logicacmg.com
250-DICEX.logicacmg.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250 8BITMIME
admin@DICEX:/etc/postfix$ telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 DICEX.logicacmg.com ESMTP Postfix (Ubuntu)
EHLO DICEX
250-DICEX.logicacmg.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250 8BITMIME
admin@DICEX:/etc/postfix$ sudo apt-get install dovecot-imapd
Password:
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
dovecot-common
The following NEW packages will be installed:
dovecot-common dovecot-imapd
0 upgraded, 2 newly installed, 0 to remove and 82 not upgraded.
Need to get 1325kB of archives.
After unpacking 2683kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1
http://security.ubuntu.com dapper-security/main dovecot-common 1.0.beta3-3ubuntu5.5 [839kB]
Get:2
http://security.ubuntu.com dapper-security/main dovecot-imapd 1.0.beta3-3ubuntu5.5 [486kB]
Fetched 1325kB in 1m25s (15.5kB/s)
Selecting previously deselected package dovecot-common.
(Reading database ... 119313 files and directories currently installed.)
Unpacking dovecot-common (from .../dovecot-common_1.0.beta3-3ubuntu5.5_i386.deb) ...
Selecting previously deselected package dovecot-imapd.
Unpacking dovecot-imapd (from .../dovecot-imapd_1.0.beta3-3ubuntu5.5_i386.deb) ...
Setting up dovecot-common (1.0.beta3-3ubuntu5.5) ...
adduser: Warning: that home directory does not belong to the user you are currently creating
Adding user `dovecot' to group `mail'...
Done.
You already have ssl certs for dovecot.
Setting up dovecot-imapd (1.0.beta3-3ubuntu5.5) ...
---------------------------------------------------
admin@DICEX:/etc/postfix$ ls
dynamicmaps.cf master.cf postfix-files prng_exch
main.cf post-install postfix-script sasl
admin@DICEX:/etc/postfix$
admin@DICEX:~$ cd /etc/postfix
admin@DICEX:/etc/postfix$ ls
dynamicmaps.cf main.cf master.cf post-install postfix-files postfix-script
admin@DICEX:/etc/postfix$ vi main.cf
admin@DICEX:/etc/postfix$ sudo vi main.cf
admin@DICEX:/etc/postfix$ sudo vi /etc/dovecot/dovecot.conf
admin@DICEX:/etc/postfix$ /etc/init.d/dovecot restart
mkdir: `/var/run/dovecot/login': Permission denied
admin@DICEX:/etc/postfix$ sudo /etc/init.d/dovecot restart
Restarting mail server: dovecotWarning: Fixing permissions of /var/run/dovecot to be world-readable
Warning: Corrected permissions for login directory /var/run/dovecot/login
.
admin@DICEX:/etc/postfix$ sudo /etc/init.d/dovecot restart
Restarting mail server: dovecot.
admin@DICEX:/etc/postfix$ sudo /etc/init.d/dovecot restart
Restarting mail server: dovecot.
admin@DICEX:/etc/postfix$ mutt -f imap://usercc@DICEX/
-bash: mutt: command not found
admin@DICEX:/etc/postfix$ sudo apt-get install mutt
Reading package lists... Done
Building dependency tree... Done
Suggested packages:
urlview mixmaster
The following NEW packages will be installed:
mutt
0 upgraded, 1 newly installed, 0 to remove and 82 not upgraded.
Need to get 908kB of archives.
After unpacking 4805kB of additional disk space will be used.
Get:1
http://security.ubuntu.com dapper-security/main mutt 1.5.11-3ubuntu2.2 [908kB]
Fetched 908kB in 1m21s (11.2kB/s)
Selecting previously deselected package mutt.
(Reading database ... 119386 files and directories currently installed.)
Unpacking mutt (from .../mutt_1.5.11-3ubuntu2.2_i386.deb) ...
Setting up mutt (1.5.11-3ubuntu2.2) ...
admin@DICEX:/etc/postfix$
admin@DICEX:/etc/postfix$ mutt -f imap://usercc@DICEX/
admin@DICEX:/etc/postfix$ mutt -f imap://usercc@DICEX/
q:Quit d
el u:Undel s:Save m:Mail r:Reply g:Group ?:Help
1 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
2 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
3 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
4 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
5 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
6 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
7 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
8 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
9 O Jul 20 Mail Delivery S (2.0K) Undelivered Mail Returned to Sender
10 O Jul 20 Mail Delivery S (2.0K) Undelivered Mail Returned to Sender
11 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
12 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
13 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
14 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
15 O Jul 20 Cron Daemon (0.5K) Cron <usercc@DICEX> run-parts --report
---Mutt: imap://usercc@DICEX/INBOX [Msgs:15 Old:15]---(threads/date)----(all)---
To:
ajeet.singh.raina@logicacmg.com
CURSOR GO TO BLOCK DELETE MISC EXIT
^B left ^F right ^U prev. screen ^KB begin ^D char. ^KJ reformat ^KX save
^P up ^N down ^V next screen ^KK end ^Y line ^T options ^C abort
^Z previous word ^A beg. of line ^KM move ^W >word ^R refresh ^KZ shell
^X next word ^E end of line ^KC copy ^O word< ^@ insert FILE
SEARCH ^KU top of file ^KW file ^J >line SPELL ^KE edit
^KF find text ^KV end of file ^KY delete ^_ undo ^[N word ^KR insert
^L find next ^KL to line No. ^K/ filter ^^ redo ^[L file ^KD save
IW /tmp/mutt-DICEX-1000-29761- Row 11 Col 1 1:13 Ctrl-K H for help
Hai this is a test
----------------------------------------------------
Can you tell me what to do next?
I want to send mail to my yahoo account an dcheck the same for the confirmation
Do help!!!!