Red Hat
Postfix/Dovecot Install
by dervish on Feb.23, 2012, under Linux, Red Hat
Install Postfix:
yum install postfix (RedHat)
apt-get install postfix (Debian)
Add Domains to Accept Mail For:
vi /etc/postfix/main.cf
set
mydestination = localhost.localdomain, localhost, domain.com, host
Tell Postfix to use Maildir instead of mbox format:
postconf -e "home_mailbox = Maildir/"
postconf -e "mailbox_command ="
Set MAIL variable in /etc/profile:
export MAIL=$HOME/Maildir
Restart Postfix:
service postfix restart
Mail local user and confirm mail is delivered.
Install Dovecot:
apt-get install dovecot-common dovecot-imapd dovecot-pop3d
Red Hat 5 – hdc: open failed: No medium found
by dervish on Jun.21, 2011, under Red Hat
Error:
Starting monitoring for VG VolGroup00: /dev/hdc: open failed: No medium found
Fix:
[root@rh5-32 cache]# vgscan
Reading all physical volumes. This may take a while…
Found volume group “VolGroup00” using metadata type lvm2
Before:
[root@rh5-32 ~]# /etc/init.d/lvm2-monitor restart
Stopping monitoring for VG VolGroup00: /dev/hdc: open failed: No medium found
6 logical volume(s) in volume group “VolGroup00” unmonitored
[ OK ]
Starting monitoring for VG VolGroup00: /dev/hdc: open failed: No medium found
6 logical volume(s) in volume group “VolGroup00” monitored
[ OK ]
/etc/lvm/cache/.cache shows hdc:
# This file is automatically maintained by lvm.
persistent_filter_cache {
valid_devices=[
“/dev/VolGroup00/LogVol00_home”,
“/dev/mapper/VolGroup00-LogVol00_home”,
“/dev/VolGroup00/LogVol00_usr”,
“/dev/VolGroup00/LogVol00_var”,
“/dev/mapper/VolGroup00-LogVol00_var”,
“/dev/mapper/VolGroup00-LogVol00_usr”,
“/dev/sda1”,
“/dev/mapper/VolGroup00-LogVol00_root”,
“/dev/hdc”,
“/dev/VolGroup00/LogVol00_root”,
“/dev/VolGroup00/LogVol00_tmp”,
“/dev/root”,
“/dev/mapper/VolGroup00-LogVol00_tmp”,
“/dev/sda2”,
“/dev/mapper/VolGroup00-LogVol00_swap”,
“/dev/VolGroup00/LogVol00_swap”
]
}
After:
[root@rh5-32 cache]# /etc/init.d/lvm2-monitor restart
Stopping monitoring for VG VolGroup00: 6 logical volume(s) in volume group “VolGroup00” unmonitored
[ OK ]
Starting monitoring for VG VolGroup00: 6 logical volume(s) in volume group “VolGroup00” monitored
[ OK ]
New /etc/lvm/cache/.cache:
[root@rh5-32 cache]# cat /etc/lvm/cache/.cache
# This file is automatically maintained by lvm.
persistent_filter_cache {
valid_devices=[
“/dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0-part1”,
“/dev/ram11”,
“/dev/VolGroup00/LogVol00_home”,
“/dev/mapper/VolGroup00-LogVol00_home”,
“/dev/ram10”,
“/dev/ram”,
“/dev/disk/by-uuid/59b6dbd6-938b-4b6c-9b3d-570403ab5aff”,
“/dev/VolGroup00/LogVol00_usr”,
“/dev/disk/by-path/pci-0000:00:10.0-scsi-0:0:0:0-part2”,
“/dev/ram12”,
“/dev/VolGroup00/LogVol00_var”,
“/dev/mapper/VolGroup00-LogVol00_var”,
“/dev/mapper/VolGroup00-LogVol00_usr”,
“/dev/ram6”,
“/dev/ram13”,
“/dev/ram14”,
“/dev/ram5”,
“/dev/ram1”,
“/dev/sda1”,
“/dev/ramdisk”,
“/dev/mapper/VolGroup00-LogVol00_root”,
“/dev/VolGroup00/LogVol00_root”,
“/dev/ram0”,
“/dev/VolGroup00/LogVol00_tmp”,
“/dev/root”,
“/dev/mapper/VolGroup00-LogVol00_tmp”,
“/dev/disk/by-label/boot”,
“/dev/ram2”,
“/dev/sda2”,
“/dev/ram8”,
“/dev/ram9”,
“/dev/ram15”,
“/dev/mapper/VolGroup00-LogVol00_swap”,
“/dev/VolGroup00/LogVol00_swap”,
“/dev/ram3”,
“/dev/ram4”,
“/dev/ram7”
]
}