Postfix internal mail server breaks....

Hello Malcolm & many thanks for an Important step forward

/etc/hosts

127.0.0.2 WAS the name the opensuse 11.2 Installation DVD

& NOT my AIG name

I have now corrected this to :-

hosts This file describes a number of hostname-to-address

mappings for the TCP/IP subsystem. It is mostly

used at boot time, when no name servers are running.

On small systems, this file can be used instead of a

“named” name server.

Syntax:

IP-Address Full-Qualified-Hostname Short-Hostname

127.0.0.1 localhost

special IPv6 addresses

::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.2 AIG.localdomain AIG


next I again tried Test :

mailx -s “Test” tabanna@AIG.localdomain

. . . But, No Joy yet :

response is :

No mail for tabanna

Dec 6 16:17:01 # ${multi_instance_name: postfix}${multi_instance_name?$multi_instance_name}/sendmail[8132]: warning: valid_hostname: invalid character 35(decimal): #
Dec 6 16:17:01 # ${multi_instance_name: postfix}${multi_instance_name?$multi_instance_name}/sendmail[8132]: fatal: unable to use my own hostname
Dec 6 16:49:21 # postfix/local[6891]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec 6 17:17:01 AIG postfix/local[5786]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec 6 18:17:04 # postfix/local[7324]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec 6 18:44:38 # postfix/local[7919]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec 6 18:45:49 # postfix/local[8094]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Dec 6 19:17:03 # postfix/local[6023]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled


  • what’s next to try please ??

thanks
Anna

OK
Now you need to check the /etc/nsswitch.conf file as it’s probably set
to nis…
The lines hosts: and networks: should be files dns eg;


hosts:		files mdns4_minimal [NOTFOUND=return] dns
networks:	files dns

I’m thinking yours says;


hosts:		nis files mdns4_minimal [NOTFOUND=return] dns


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 1 day 23:05, 1 user, load average: 0.03, 0.08, 0.12
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

I did too have this problem with postfix, but i have switched to sendmail until a bugfix is available.

As for the hostname issues, well this is pretty simple: when linux is installed it will ask to change the hostmane and adds the domanin “site” ; this will be stored as the following hostname: 127.0.0.2 your-name.site your-name just **modify 127.0.0.2 to 127.0.0.1 **
and add the following line 127.0.0.1 localhost localhost.localadmin

That will fix the problem with mail send on your server to root or local users. :slight_smile:

Thank you Malcolm . . . & thank you creatura85

My /etc/nsswitch.conf looks all right :


"

For more information, please read the nsswitch.conf.5 manual page.

passwd: files nis

shadow: files nis

group: files nis

passwd: compat
group: compat

hosts: files mdns4_minimal [NOTFOUND=return] dns
networks: files dns

services: files
protocols: files
rpc: files
ethers: files
netmasks: files
netgroup: files
publickey: files

bootparams: files
automount: files
aliases: files
"

now, trying the /etc/hosts suggestions - much appreciated

best regards
Anna


my /etc/hosts file is now :


"

IP-Address Full-Qualified-Hostname Short-Hostname

127.0.0.1 localhost

special IPv6 addresses

::1 localhost ipv6-localhost ipv6-loopback

fe00::0 ipv6-localnet

ff00::0 ipv6-mcastprefix
ff02::1 ipv6-allnodes
ff02::2 ipv6-allrouters
ff02::3 ipv6-allhosts
127.0.0.1 AIG.localdomain AIG
127.0.0.1 localhost localhost.localadmin
"

thanks
Anna

Glad to help you Anna :slight_smile:

Since we talk about MTA, do you know what web mail client supports using MD5? squirrel mail or roundcube mail uses only plain-text and i use it only on localhost not from the web because of the existing password sniffers on the web or LAN .

Hello creatura85 - and thank you

  • this MD5 stuff sounds very high-powered, and quite above my head
    . . . but thank you

since adding “127.0.0.1 localhost localhost.localadmin” to the end of my /etc/hosts, I still cannot send mailx message to myself

: I get the response “No Mail for tabanna”

I live in hope : perhaps inspiration will enlighten me . . . perhaps a bug-fix will arrive from the sky

best regards
Anna

Hi
So what errors do you get in the logs?


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 2 days 20:48, 6 users, load average: 0.29, 0.18, 0.13
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Anna under OpenSuse 11.0 i use the following configuration to manage my mails: imap (not cyrus-imapd) and sendmail, along with the settings that i have told you and with pine as internal mail reader and squirrel mail as a web mail client.

Hello Malcolm , and, creatura85

these are the logs :

/var/log/mail.info

“Dec 7 22:17:01 # postfix/qmgr[32563]: ABAAA73B1: removed
Dec 7 23:17:02 # postfix/pickup[6372]: 2CB8773B1: uid=1000 from=<tabanna>
Dec 7 23:17:02 # postfix/cleanup[6509]: 2CB8773B1: message-id=<20091207211702.2CB87
Dec 7 23:17:02 # postfix/qmgr[32563]: 2CB8773B1: from=<tabanna@AIG.localdomain>, si
Dec 7 23:17:02 # postfix/local[6511]: warning: dict_nis_init: NIS domain name not s
Dec 7 23:17:02 # postfix/local[6511]: 2CB8773B1: to=<tabanna@AIG.localdomain>, orig
Dec 7 23:17:02 # postfix/cleanup[6509]: 6B1BE73B2: message-id=<20091207211702.6B1BE
Dec 7 23:17:02 # postfix/qmgr[32563]: 6B1BE73B2: from=<>, size=2544, nrcpt=1 (queue
Dec 7 23:17:02 # postfix/bounce[6512]: 2CB8773B1: sender non-delivery notification:
Dec 7 23:17:02 # postfix/qmgr[32563]: 2CB8773B1: removed
Dec 7 23:17:02 # postfix/local[6511]: 6B1BE73B2: to=<tabanna@AIG.localdomain>, rela
Dec 7 23:17:02 # postfix/qmgr[32563]: 6B1BE73B2: removed”

/var/log/mail.warn

“Dec 7 18:15:42 # postfix/local[32575]: warning: dict_nis_init: NIS domain name not
Dec 7 19:17:02 # postfix/local[1409]: warning: dict_nis_init: NIS domain name not s
Dec 7 20:17:01 # postfix/local[2625]: warning: dict_nis_init: NIS domain name not s
Dec 7 21:17:01 # postfix/local[3719]: warning: dict_nis_init: NIS domain name not s
Dec 7 22:17:01 # postfix/local[5447]: warning: dict_nis_init: NIS domain name not s
Dec 7 23:17:02 # postfix/local[6511]: warning: dict_nis_init: NIS domain name not s”

  • I wish to use Kmail as my reader

How must I proceed ?? :

  1. Un-Install Postfix ??
    2.Install Sendmail ??
    3.Make sure Kmail is configured to use imap ??

thank you
Anna

Hi
So have you done any reconfiguration of the /etc/postfix/main.cf file?
Or added alias? Have you restarted the postfix daemon (or rebooted the
system)?

Can you check the /etc/postfix/main.cf file and what does the line
alias_maps = say?

No, I would leave postfix…


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 3 days 3:51, 5 users, load average: 0.09, 0.08, 0.02
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

First of all : make sure that the package imap is installed (along with imap-devel, imap-utils and imap-filter) and after that uninstall cyrus-imapd using yast of course :slight_smile:

Now under open suse 11.2, imap is no longer available so here is a link that may help you : SquirrelMail - Webmail for Nuts! just follow the steps regarding how to install uw-imap :wink:

After installing uw-imap go Yast → Networks Services → Mail Transfer Agent and configure your MTA using imap as server protocol. Since postfix has a bug i suggest uninstalling postfix and installing sendmail or you can leave postfix as suggested by malcolmlewis, your choice here.

The steps provided by you are almost correct: 1 and 2 are correct but after that before you start using Kmail you must configure the MTA ( Mail Transfer Agent) as stated by my at the top of my post. After the configuration of the MTA is complete you may start Kmail and configure the program to use imap :slight_smile:

PS: malcolmlewis maybe you can make this sticky so people can see it much faster :slight_smile:

Dear Malcolm & creatura85

  • I do not enjoy the benefits of knowledge, and find myself floundering :

All I want is:


1). to use Kmail to receive local mail for cron & system messages
&
2). to use Kmail to send & receive POP3 mail from Web-Mail services

I DO not need to use mail-servers of my ISP’s


Yast , as creatura85 explained. does NOT suppy impa

Yast will not allow me to install imap-utils

Yast persuaded me to UN-install Postfix when installing Sendmail

Do I NEED to install Squirrel-Mail
OR
Is there some really SIMPLE way to have kmail receive local cron & system messages ???

Living-in-Hope, I see that /var/log/mail.warn says:


Dec 8 13:18:44 # sendmail[24741]: NOQUEUE: SYSERR(root): /etc/sendmail.cf: line 31: queue UEUE_DIR=: `=’ expected
Dec 8 13:18:44 # sendmail[24741]: NOQUEUE: SYSERR(root): /etc/sendmail.cf: line 33: unknown configuration line “local_procmail”
Dec 8 13:18:44 # sendmail[24741]: NOQUEUE: SYSERR(root): No local mailer defined
Dec 8 13:18:44 # sendmail[24741]: NOQUEUE: SYSERR(root): QueueDirectory (Q) option must be set
Dec 8 13:19:15 # sendmail[24763]: NOQUEUE: SYSERR(root): No local mailer defined
Dec 8 13:19:15 # sendmail[24763]: NOQUEUE: SYSERR(root): QueueDirectory (Q) option must be set

thus : I hopefully wonder, if I can find the correct way to Define "Local Mailer AND “Queue Directory” /var/spool/mqueue
just . . . perhaps . . . there is a SIMPLE Solution ?? :slight_smile:

Thank you both . . . I do not have the benefit of knowledge
best regards
Anna

Anna there is no need to install squirrel mail. I have gived you that link so you can find out how to install imap manually :slight_smile:

Yast will ask you to choose between postfix and sendmail because both can`t work at the same time as they fullfill the same funtion.

Acctually when sending an e-mail if you dont have your own mail server your will use the one provided by your ISP :slight_smile:

About the warning it seems that you need to install procmail.

Hello Malcolm

  • now, I have reinstalled postfix, and installed procmail

( at this moment sendmail is running [not postfix] )

I have just tried to send a local mail to myself, and this is what I get :


< No local mailer defined
QueueDirectory (Q) option must be set >

How can I define “local mailer”

& how can I define “Queue Directory” ??

My hope is to get LOCAL Mail working so that I may receive cron messages


/var/log/mail.warn says :


Dec 8 16:17:01 # sendmail[28990]: NOQUEUE: SYSERR(tabanna): QueueDirectory (Q) opti
Dec 8 17:17:02 # sendmail[30340]: NOQUEUE: SYSERR(tabanna): No local mailer defined
Dec 8 17:17:02 # sendmail[30340]: NOQUEUE: SYSERR(tabanna): QueueDirectory (Q) opti
Dec 8 17:26:18 # sendmail[30965]: NOQUEUE: SYSERR(root): No local mailer defined
Dec 8 17:26:18 # sendmail[30965]: NOQUEUE: SYSERR(root): QueueDirectory (Q) option
Dec 8 17:33:29 # sendmail[2811]: NOQUEUE: SYSERR(root): No local mailer defined
Dec 8 17:33:29 # sendmail[2811]: NOQUEUE: SYSERR(root): QueueDirectory (Q) option m
Dec 8 17:36:42 # sendmail[5409]: NOQUEUE: SYSERR(tabanna): No local mailer defined
Dec 8 17:36:42 # sendmail[5409]: NOQUEUE: SYSERR(tabanna): QueueDirectory (Q) optio


thank you
Anna

Hi
By default that all works from the get go, so I’m not sure on what has
occurred :frowning:

All that’s needed from a base install is to update the /etc/aliases
file to add your username to the ‘root’ entry, run newaliases and then
run postfix reload.

Sendmail has it’s own issues and you should disable it and run postfix
(please :slight_smile: ).

During the initial install you can select the default user that’s added
to receive system mail.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 3 days 19:59, 4 users, load average: 0.97, 0.61, 0.24
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Dear Malcolm, I think I am getting very confused!!

      /etc/aliases
     _____

my /etc/aliases now starts with root: tabanna :-


>>>>>>>>>> The program “newaliases” will need to be run

>> NOTE >> after this file is updated for any changes

>>>>>>>>>> to show through to sendmail.

root: tabanna

Basic system aliases that MUST be present.

postmaster: root
mailer-daemon: postmaster


Sendmail has been de-installed

Postfix is installed

BUT, now I do not seem to have " newaliases "
< lrwxrwxrwx 1 root root 16 2009-12-08 21:40 /usr/bin/newaliases → …/sbin/sendmail >
although /usr/bin/newaliases seems to be a link
pointing at /sbin/sendmail
. . . nevertheless /sbin/sendmail does NOT seem to exist ??


Have I got a Virus ?? : what could " .gvfs " possibly be ??

  • MidnightCommander does NOT see /home/tabanna/.gvfs !!!
    see output from root Konsole :

AIG:~ # updatedb
/usr/bin/find: /home/tabanna/.gvfs': Permission denied AIG:~ # ls -la /home/tabanna/.gvfs ls: cannot access /home/tabanna/.gvfs: Permission denied AIG:~ # rm -f -R /home/tabanna/.gvfs rm: cannot remove /home/tabanna/.gvfs’: Permission denied
AIG:~ #


later : . . . Wikipedia says :


GVFS
From Wikipedia, the free encyclopedia
Jump to: navigation, search
Free software portal
GVFS

GVFS[1] is a replacement for GnomeVFS,[2] the GNOME Virtual File System.
GVFS optionally allows supported virtual file systems to be mounted through FUSE.[3]

GVFS consists of two parts: a shared library which is loaded by applications
supporting GIO and GVFS itself, a collection of daemons which communicate
with each other and the GIO module over D-Bus.
This moves the virtual file systems out of client processes, unlike GnomeVFS,
but somewhat similar to KIO.

Thank you for your help,
Anna

Hi
Well the sendmail it’s looking for is a postfix application. You need
to re-install postfix if it’s gone.

gvfs is part of the system and it’s fine to be present.


Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.39-0.3-default
up 4 days 0:21, 3 users, load average: 0.33, 0.23, 0.20
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Hello Malcolm

  • still struggling . . . have re-installed postfix, & have new
    newaliases & have run postfix reload

/var/spool/postfix/defer/0 shows message :



<root@AIG.localdomain>: alias database unavailable
recipient=root@AIG.localdomain
original_recipient=root
offset=807
status=4.3.0
action=delayed
reason=alias database unavailable

How to fix < alias database > ??

thanks
Anna

Dear Forum

openSuSE 11.2


  • I use Web-Mail, and do not want to set up mail with local ISP

All I need is to get System-Messages delivered to Kmail

How can I set up ONLY Local Mail.

Something has gone wrong with my new Fresh Install of openSuSE 11.2

Error messages are :

Dec 11 09:43:41 # postfix/local[16270]: warning: lookup owner-root, NIS domain

I think I do not need NIS ]

thank you
Anna