Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 186870 - postfix doesn't respect changes in /etc/mail/aliases
Summary: postfix doesn't respect changes in /etc/mail/aliases
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-28 09:57 UTC by Niklas Närhinen
Modified: 2007-07-28 17:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
/etc/mail/aliases (aliases,1.04 KB, text/plain)
2007-07-28 10:24 UTC, Niklas Närhinen
Details
/etc/postfix/main.cf (main.cf,25.30 KB, text/plain)
2007-07-28 10:29 UTC, Niklas Närhinen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Niklas Närhinen 2007-07-28 09:57:19 UTC
In a nutshell:

1. In /etc/mail/aliases I had a line myusername: foo@bar.com
2. I changed the line to: myusername: bar@foo.com
This worked out as it supposed.
3. I removed the whole line
This is when things started to get weird. My mail is again forwarded to foo@bar.com

After every change I executed "newaliases and /etc/init.d/postfix reload".

Something I'm doing wrong or is this a bug?

It's the same behavior with both the stable and ~arch versions.

Reproducible: Always




narhinen jarda # emerge --info
Portage 2.1.2.9 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r4, 2.6.20-gentoo-r7 i686)
=================================================================
System uname: 2.6.20-gentoo-r7 i686 Pentium III (Coppermine)
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 26 Jul 2007 15:50:01 +0000
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.23b
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.public.fix.fi/gentoo/"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="fi en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/webapps-experimental /usr/portage/local/layman/php-testing /usr/local/portage"
SYNC="rsync://rsync.fi.gentoo.org/gentoo-portage"
USE="berkdb bitmap-fonts cli cracklib crypt cups dri fortran gdbm gpm iconv ipv6 isdnlog libg++ midi mudflap ncurses nls nptl nptlonly openmp pam pcre perl ppds pppd python readline reflection session spl ssl tcpd truetype-fonts type1-fonts unicode x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fi en_US" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i740 i810 imstt mach64 mga neomagic nsc nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga via vmware voodoo"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-07-28 10:13:37 UTC
Please, read the documentation. You failed to run newaliases.

http://www.postfix.org/aliases.5.html
Comment 2 Niklas Närhinen 2007-07-28 10:15:16 UTC
If I create a whole new user, everything works as it is supposed. But with the old one it gets allways forwarded to the first address.
Comment 3 Niklas Närhinen 2007-07-28 10:17:00 UTC
(In reply to comment #1)
> Please, read the documentation. You failed to run newaliases.
> 
> http://www.postfix.org/aliases.5.html
> 

And as I said in my first post, I did run newaliases.
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-07-28 10:20:04 UTC
Kindly attach the whole file here.
Comment 5 Niklas Närhinen 2007-07-28 10:24:40 UTC
Created attachment 126211 [details]
/etc/mail/aliases
Comment 6 Niklas Närhinen 2007-07-28 10:29:14 UTC
Created attachment 126214 [details]
/etc/postfix/main.cf
Comment 7 Niklas Närhinen 2007-07-28 10:29:45 UTC
My settings above
Comment 8 Paul Bredbury 2007-07-28 11:58:23 UTC
Uncomment these lines:

alias_maps = hash:/etc/mail/aliases
alias_database = hash:/etc/mail/aliases
Comment 9 Niklas Närhinen 2007-07-28 12:15:00 UTC
(In reply to comment #8)
> Uncomment these lines:
> 
> alias_maps = hash:/etc/mail/aliases
> alias_database = hash:/etc/mail/aliases
> 

Thank you, this worked. I'm sure I tried this allready yesterday. Maybe I had something different atm then.
Comment 10 Niklas Närhinen 2007-07-28 16:07:08 UTC
(In reply to comment #9)

> 
> Thank you, this worked. I'm sure I tried this allready yesterday. Maybe I had
> something different atm then.
> 

Actually not. Now when I make a local forward. Like "myusername: anotherusername", it starts to forward to the very first e-mail outside.
Comment 11 Jakub Moc (RETIRED) gentoo-dev 2007-07-28 17:48:58 UTC
Please, stop recycling this bug for various configuration issues, thanks.