Hello, My new postfix install do not seems to read the /etc/alases file (of course I have run newaliases) mostly default install with openSUSE doc https://en.opensuse.org/Mail_server_HOWTO only for local delivery (no dovecot) if I send a mil to jdd, with jdd: root the mail still come in jdd mail box any idea? thanks jdd -- http://dodin.org http://valeriedodin.com
On Wed, Dec 15, 2021 at 11:05 AM jdd@dodin.org <jdd@dodin.org> wrote:
My new postfix install do not seems to read the /etc/alases file (of course I have run newaliases)
mostly default install with openSUSE doc
https://en.opensuse.org/Mail_server_HOWTO
only for local delivery (no dovecot)
if I send a mil to jdd, with
jdd: root
the mail still come in jdd mail box
any idea?
You could probably also use /etc/postfix/virtual for this. It has a bit of a different format, but not complicated at all... -- Met vriendelijke groet / Best regards, Wilfred van Velzen
Le 15/12/2021 à 11:22, Wilfred van Velzen a écrit :
On Wed, Dec 15, 2021 at 11:05 AM jdd@dodin.org <jdd@dodin.org> wrote:
My new postfix install do not seems to read the /etc/alases file (of course I have run newaliases)
mostly default install with openSUSE doc
https://en.opensuse.org/Mail_server_HOWTO
only for local delivery (no dovecot)
if I send a mil to jdd, with
jdd: root
the mail still come in jdd mail box
any idea?
You could probably also use /etc/postfix/virtual for this. It has a bit of a different format, but not complicated at all...
may be, but is /etc/alases do not work, it may be better to first fis this. But I don't know where or how to found the culprit :-( thanks jdd -- http://dodin.org http://valeriedodin.com
Op woensdag 15 december 2021 11:04:52 CET schreef jdd@dodin.org:
Hello,
My new postfix install do not seems to read the /etc/alases file (of course I have run newaliases)
mostly default install with openSUSE doc
https://en.opensuse.org/Mail_server_HOWTO
only for local delivery (no dovecot)
if I send a mil to jdd, with
jdd: root
the mail still come in jdd mail box
any idea?
thanks jdd
You did not mention which openSUSE version you did use. I found an inconsistency in postfix for Leap 15.3, an update. See https://bugzilla.suse.com/show_bug.cgi?id=1193692 However analysing postfix further I found more puzzling issues in a combination of /etc/postfix/master.cf and /usr/sbin/config.postfix and in combination with the Mail module of YaST2. I am trying to enhance https://en.opensuse.org/Mail_server_HOWTO, but I stumbled into these issues, which need more study. Will take some time. -- fr.gr. member openSUSE Freek de Kruijf
On 15/12/2021 11.04, jdd@dodin.org wrote:
Hello,
My new postfix install do not seems to read the /etc/alases file (of course I have run newaliases)
mostly default install with openSUSE doc
https://en.opensuse.org/Mail_server_HOWTO
only for local delivery (no dovecot)
if I send a mil to jdd, with
jdd: root
the mail still come in jdd mail box
any idea?
Did you remember to do: cd /etc/postfix/ postalias /etc/aliases You have to do this every time you do a change. Actually, I have an "/etc/postfix/Makefile", and then just run "make" in that directory. See the attached. -- Cheers / Saludos, Carlos E. R. (from 15.2 x86_64 at Telcontar)
Le 15/12/2021 à 11:49, Carlos E. R. a écrit :
On 15/12/2021 11.04, jdd@dodin.org wrote:
My new postfix install do not seems to read the /etc/alases file (of course I have run newaliases)
Did you remember to do:
cd /etc/postfix/ postalias /etc/aliases
I think it's the same as "newaliases". anyway I did and no change jdd -- http://dodin.org http://valeriedodin.com
Am 15.12.21 um 12:29 schrieb jdd@dodin.org:
Le 15/12/2021 à 11:49, Carlos E. R. a écrit :
On 15/12/2021 11.04, jdd@dodin.org wrote:
My new postfix install do not seems to read the /etc/alases file (of course I have run newaliases)
- Are you sure with your spelling? It is '/etc/aliases' - How does your '/etc/aliases' look like? -> 'cat /etc/aliases' - Was your '/etc/aliases.db' really updated? -> 'ls -al /etc/aliases*'
Did you remember to do:
cd /etc/postfix/ postalias /etc/aliases
I think it's the same as "newaliases". anyway I did and no change
jdd
Le 15/12/2021 à 12:34, Keine Eile a écrit :
Am 15.12.21 um 12:29 schrieb jdd@dodin.org:
Le 15/12/2021 à 11:49, Carlos E. R. a écrit :
On 15/12/2021 11.04, jdd@dodin.org wrote:
My new postfix install do not seems to read the /etc/alases file (of course I have run newaliases)
- Are you sure with your spelling? It is '/etc/aliases'
yes, the mail is typed, not the file :-)
- How does your '/etc/aliases' look like? -> 'cat /etc/aliases' - Was your '/etc/aliases.db' really updated? -> 'ls -al /etc/aliases*'
# ll /etc/aliases* -rw-r--r-- 1 root root 2769 15 déc. 09:33 /etc/aliases -rw-r--r-- 1 root root 12288 24 sept. 17:12 /etc/aliases.db -rw-r--r-- 1 root root 32768 15 déc. 12:27 /etc/aliases.lmdb https://paste.opensuse.org/50454178 the last lines are tests. None worked, neither jdd: root wich makes me feel the aliases file is not scanned jdd -- http://dodin.org http://valeriedodin.com
jdd@dodin.org wrote:
Hello,
My new postfix install do not seems to read the /etc/alases file (of course I have run newaliases)
mostly default install with openSUSE doc
https://en.opensuse.org/Mail_server_HOWTO
only for local delivery (no dovecot)
if I send a mil to jdd, with
jdd: root
the mail still come in jdd mail box
any idea?
Try posting output from "postconf -n | grep alias" -- Per Jessen, Zürich (2.7°C)
Le 15/12/2021 à 12:10, Per Jessen a écrit :
jdd@dodin.org wrote:
Try posting output from "postconf -n | grep alias"
https://paste.opensuse.org/69923328 thanks jdd -- http://dodin.org http://valeriedodin.com
jdd@dodin.org wrote:
Le 15/12/2021 à 12:10, Per Jessen a écrit :
jdd@dodin.org wrote:
Try posting output from "postconf -n | grep alias"
alias_maps is empty - I am pretty certain that is your problem. Try alias_maps = lmdb:/etc/aliases (assuming you have the default postfix package). -- Per Jessen, Zürich (3.2°C)
Le 15/12/2021 à 12:56, Per Jessen a écrit :
alias_maps is empty - I am pretty certain that is your problem. Try
alias_maps = lmdb:/etc/aliases
(assuming you have the default postfix package).
yes... I was thinking it to be default and it was not... so now the aliases works. an other problem arise, the mailing list server is greylisted. May be add it to $myorigin??: 2021-12-15T13:17:59.689533+01:00 ns507557 postfix/smtp[14700]: 3A91914063: to=<SRS0=kKBn=RA=culte.org=test-owner@le-pic.org>, relay=mxttn.le-pic.org[89.234.156.206]:25, delay=1.4, delays=0.02/0/1.3/0.13, dsn=4.2.0, status=deferred (host mxttn.le-pic.org[89.234.156.206] said: 450 4.2.0 <SRS0=kKBn=RA=culte.org=test-owner@le-pic.org>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/le-pic.org.html (in reply to RCPT TO command)) thanks jdd -- http://dodin.org http://valeriedodin.com
jdd@dodin.org wrote:
Le 15/12/2021 à 12:56, Per Jessen a écrit :
alias_maps is empty - I am pretty certain that is your problem. Try
alias_maps = lmdb:/etc/aliases
(assuming you have the default postfix package).
yes... I was thinking it to be default and it was not...
It used to be, I expect this new default comes from SLE.
an other problem arise, the mailing list server is greylisted. May be add it to $myorigin??:
2021-12-15T13:17:59.689533+01:00 ns507557 postfix/smtp[14700]: 3A91914063: to=<SRS0=kKBn=RA=culte.org=test-owner@le-pic.org>, relay=mxttn.le-pic.org[89.234.156.206]:25, delay=1.4, delays=0.02/0/1.3/0.13, dsn=4.2.0, status=deferred (host mxttn.le-pic.org[89.234.156.206] said: 450 4.2.0 <SRS0=kKBn=RA=culte.org=test-owner@le-pic.org>: Recipient address rejected: Greylisted, see http://postgrey.schweikert.ch/help/le-pic.org.html (in reply to RCPT TO command))
Greylisting is a matter for the receiving server, not for the sending. If this is your server being greylisted by mxttn.le-pic.org[89.234.156.206], there is probably little you can do, but at least start by making sure your IP addresses are properly reverse mapped in DNS. -- Per Jessen, Zürich (1.9°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland.
Le 15/12/2021 à 13:37, Per Jessen a écrit :
Greylisting is a matter for the receiving server, not for the sending. If this is your server being greylisted by mxttn.le-pic.org[89.234.156.206], there is probably little you can do, but at least start by making sure your IP addresses are properly reverse mapped in DNS.
I know very well the le-pic.org admins, and will see this with them but how can this be when I only receive the message? thanks jdd -- http://dodin.org http://valeriedodin.com
jdd@dodin.org wrote:
Le 15/12/2021 à 13:37, Per Jessen a écrit :
Greylisting is a matter for the receiving server, not for the sending. If this is your server being greylisted by mxttn.le-pic.org[89.234.156.206], there is probably little you can do, but at least start by making sure your IP addresses are properly reverse mapped in DNS.
I know very well the le-pic.org admins, and will see this with them but how can this be when I only receive the message?
Well, if your server is 'ns507557', it clearly tried to deliver an email via smtp to mxttn.le-pic.org[89.234.156.206] and was greylisted. Most greylisting is done for all hosts, very few exceptions, and the sending server only has to retry after the usual interval, typically 15minutes. -- Per Jessen, Zürich (2.4°C) http://www.dns24.ch/ - free dynamic DNS, made in Switzerland.
Le 15/12/2021 à 13:58, Per Jessen a écrit :
Well, if your server is 'ns507557', it clearly tried to deliver an email via smtp to mxttn.le-pic.org[89.234.156.206] and was greylisted.
oh... I guess than postfix tried to send back something to test-owner thanks jdd -- http://dodin.org http://valeriedodin.com
jdd@dodin.org wrote:
Le 15/12/2021 à 13:58, Per Jessen a écrit :
Well, if your server is 'ns507557', it clearly tried to deliver an email via smtp to mxttn.le-pic.org[89.234.156.206] and was greylisted.
oh... I guess than postfix tried to send back something to test-owner
Probably an NDR - a non-delivery report. I don't know how well you know Postfix, but at the time you got the greylisting, the mail would still have been in the queue - show the queue 'postqueue -p' show a mail from the queue - 'postcat -q <id>' -- Per Jessen, Zürich (3.6°C)
Le 16/12/2021 à 09:37, Per Jessen a écrit :
postqueue -p
empty. It's probably too late :-( but if it's a NDR post to the list admin, it's not important. List may be greyed because the user is (was) in error, and as I created this list only for this test purpose, I didn't even mean to setup an owner mail :-( thanks jdd -- http://dodin.org http://valeriedodin.com
Op woensdag 15 december 2021 12:31:28 CET schreef jdd@dodin.org:
Le 15/12/2021 à 12:10, Per Jessen a écrit :
jdd@dodin.org wrote:
Try posting output from "postconf -n | grep alias"
https://paste.opensuse.org/69923328
thanks jdd
It is obvious alias_maps has no value it should be: alias_maps = lmdb:/etc/aliases in case "postconf default_database_type" returns: default_database_type = lmdb With older versions of postfix lmdb could be hash or dbm. Use the above postconf command to find the one you should use. -- fr.gr. member openSUSE Freek de Kruijf
Le 15/12/2021 à 13:02, Freek de Kruijf a écrit :
It is obvious alias_maps has no value it should be: alias_maps = lmdb:/etc/aliases in case "postconf default_database_type" returns: default_database_type = lmdb With older versions of postfix lmdb could be hash or dbm. Use the above postconf command to find the one you should use.
# postconf default_database_type default_database_type = lmdb but may be it's only because I added it manually?? thanks jdd -- http://dodin.org http://valeriedodin.com
participants (6)
-
Carlos E. R.
-
Freek de Kruijf
-
jdd@dodin.org
-
Keine Eile
-
Per Jessen
-
Wilfred van Velzen