postfix rejecting local email.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

postfix rejecting local email.

Steven Jones
I am trying to setup a mailman server but it has a different domainname to the hostname and its FQDN.  When I try and create a list and Mailman tries to send it I get,

I get this error,

8><---
Sep 14 09:12:49 vuwunicomailmp1 postfix/smtpd[66783]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains
Sep 14 09:12:50 vuwunicomailmp1 postfix/master[65761]: warning: process /usr/libexec/postfix/smtpd pid 66783 exit status 1
Sep 14 09:12:50 vuwunicomailmp1 postfix/master[65761]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
Sep 14 09:13:50 vuwunicomailmp1 postfix/smtpd[66792]: warning: database /etc/postfix/not_from_me.db is older than source file /etc/postfix/not_from_me
Sep 14 09:13:50 vuwunicomailmp1 postfix/smtpd[66792]: fatal: in parameter smtpd_relay_restrictions or smtpd_recipient_restrictions, specify at least one working instance of: reject_unauth_destination, defer_unauth_destination, reject, defer, defer_if_permit or check_relay_domains
Sep 14 09:13:51 vuwunicomailmp1 postfix/master[65761]: warning: process /usr/libexec/postfix/smtpd pid 66792 exit status 1
Sep 14 09:13:51 vuwunicomailmp1 postfix/master[65761]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling

8><----

I cannot figure out how to allow email from Mailman's lists.xxx.ac.nz  name when the server FQDN is different.

I have set,

mynetworks = 127.0.0.0/8, [::1]/128

myhostname = lists.xxx.ac.nz

mydestination = $myhostname, localhost.$mydomain, localhost, lists.xxx.ac.nz, xxx.ac.nz



thanks


regards

Steven 

Reply | Threaded
Open this post in threaded view
|

Re: postfix rejecting local email.

Pau Amma
On 2020-09-13 21:22, Steven Jones wrote:

> I am trying to setup a mailman server but it has a different
> domainname to the hostname and its FQDN.  When I try and create a list
> and Mailman tries to send it I get,
>
> I get this error,
>
> 8><---
> Sep 14 09:12:49 vuwunicomailmp1 postfix/smtpd[66783]: fatal: in
> parameter smtpd_relay_restrictions or smtpd_recipient_restrictions,
> specify at least one working instance of: reject_unauth_destination,
> defer_unauth_destination, reject, defer, defer_if_permit or
> check_relay_domains

Have you tried doing what it tells you to?

[...]

> Sep 14 09:13:50 vuwunicomailmp1 postfix/smtpd[66792]: warning:
> database /etc/postfix/not_from_me.db is older than source file
> /etc/postfix/not_from_me

You may want to check that too.

[...]

> I have set,
>
> mynetworks = 127.0.0.0/8, [::1]/128
>
> myhostname = lists.xxx.ac.nz
>
> mydestination = $myhostname, localhost.$mydomain, localhost,
> lists.xxx.ac.nz, xxx.ac.nz

http://www.postfix.org/DEBUG_README.html#mail
Reply | Threaded
Open this post in threaded view
|

Re: postfix rejecting local email.

Steven Jones
Trying to but I dont understand what I am missing.

regards

Steven



From: Pau Amma <[hidden email]>
Sent: Monday, 14 September 2020 9:40 AM
To: Steven Jones <[hidden email]>
Cc: [hidden email] <[hidden email]>
Subject: Re: postfix rejecting local email.
 
On 2020-09-13 21:22, Steven Jones wrote:
> I am trying to setup a mailman server but it has a different
> domainname to the hostname and its FQDN.  When I try and create a list
> and Mailman tries to send it I get,
>
> I get this error,
>
> 8><---
> Sep 14 09:12:49 vuwunicomailmp1 postfix/smtpd[66783]: fatal: in
> parameter smtpd_relay_restrictions or smtpd_recipient_restrictions,
> specify at least one working instance of: reject_unauth_destination,
> defer_unauth_destination, reject, defer, defer_if_permit or
> check_relay_domains

Have you tried doing what it tells you to?

[...]

> Sep 14 09:13:50 vuwunicomailmp1 postfix/smtpd[66792]: warning:
> database /etc/postfix/not_from_me.db is older than source file
> /etc/postfix/not_from_me

You may want to check that too.

[...]

> I have set,
>
> mynetworks = 127.0.0.0/8, [::1]/128
>
> myhostname = lists.xxx.ac.nz
>
> mydestination = $myhostname, localhost.$mydomain, localhost,
> lists.xxx.ac.nz, xxx.ac.nz

https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.postfix.org%2FDEBUG_README.html%23mail&amp;data=02%7C01%7Csteven.jones%40vuw.ac.nz%7C2eba32c9adc24ba6479d08d8582d9d0a%7Ccfe63e236951427e8683bb84dcf1d20c%7C0%7C1%7C637356300238850650&amp;sdata=GWJokOKq7%2Bj3mBryWLD1nuIP%2F8oWHDZ6OqTQri%2FnLA0%3D&amp;reserved=0
Reply | Threaded
Open this post in threaded view
|

Re: postfix rejecting local email.

Steven Jones
Settings,

[root@vuwunicomailmp1 postfix]# postconf -n
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases, hash:/etc/mailman/split-aliases
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
header_checks = regexp:/etc/postfix/header_checks_1458230
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 30720000
mydestination = $myhostname, localhost.$mydomain, localhost, lists.xxx.ac.nz
myhostname = lists.xxx.ac.nz
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relayhost = [smtp.vuw.ac.nz]
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_sender_restrictions = permit_mynetworks,check_sender_access hash:/etc/postfix/not_from_me,reject
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
[root@vuwunicomailmp1 postfix]#



regards

Steven



From: [hidden email] <[hidden email]> on behalf of Steven Jones <[hidden email]>
Sent: Monday, 14 September 2020 9:41 AM
Cc: [hidden email] <[hidden email]>
Subject: Re: postfix rejecting local email.
 
Trying to but I dont understand what I am missing.

regards

Steven



From: Pau Amma <[hidden email]>
Sent: Monday, 14 September 2020 9:40 AM
To: Steven Jones <[hidden email]>
Cc: [hidden email] <[hidden email]>
Subject: Re: postfix rejecting local email.
 
On 2020-09-13 21:22, Steven Jones wrote:
> I am trying to setup a mailman server but it has a different
> domainname to the hostname and its FQDN.  When I try and create a list
> and Mailman tries to send it I get,
>
> I get this error,
>
> 8><---
> Sep 14 09:12:49 vuwunicomailmp1 postfix/smtpd[66783]: fatal: in
> parameter smtpd_relay_restrictions or smtpd_recipient_restrictions,
> specify at least one working instance of: reject_unauth_destination,
> defer_unauth_destination, reject, defer, defer_if_permit or
> check_relay_domains

Have you tried doing what it tells you to?

[...]

> Sep 14 09:13:50 vuwunicomailmp1 postfix/smtpd[66792]: warning:
> database /etc/postfix/not_from_me.db is older than source file
> /etc/postfix/not_from_me

You may want to check that too.

[...]

> I have set,
>
> mynetworks = 127.0.0.0/8, [::1]/128
>
> myhostname = lists.xxx.ac.nz
>
> mydestination = $myhostname, localhost.$mydomain, localhost,
> lists.xxx.ac.nz, xxx.ac.nz

https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.postfix.org%2FDEBUG_README.html%23mail&amp;data=02%7C01%7Csteven.jones%40vuw.ac.nz%7C2eba32c9adc24ba6479d08d8582d9d0a%7Ccfe63e236951427e8683bb84dcf1d20c%7C0%7C1%7C637356300238850650&amp;sdata=GWJokOKq7%2Bj3mBryWLD1nuIP%2F8oWHDZ6OqTQri%2FnLA0%3D&amp;reserved=0
Reply | Threaded
Open this post in threaded view
|

Re: postfix rejecting local email.

Steven Jones
I added this,

#ssj start
compatibility_level=2
#ssj fini

to main.conf.

Now works.


I am on postfix 3.3.1 what would the in-compatibility be?  ie what do I fix to remove the above?



regards

Steven 



From: [hidden email] <[hidden email]> on behalf of Steven Jones <[hidden email]>
Sent: Monday, 14 September 2020 10:59 AM
To: [hidden email] <[hidden email]>
Subject: Re: postfix rejecting local email.
 
Settings,

[root@vuwunicomailmp1 postfix]# postconf -n
alias_maps = hash:/etc/aliases, hash:/etc/mailman/aliases, hash:/etc/mailman/split-aliases
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
header_checks = regexp:/etc/postfix/header_checks_1458230
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 30720000
mydestination = $myhostname, localhost.$mydomain, localhost, lists.xxx.ac.nz
myhostname = lists.xxx.ac.nz
mynetworks = 127.0.0.0/8
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES
relayhost = [smtp.vuw.ac.nz]
sample_directory = /usr/share/doc/postfix-2.6.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_sender_restrictions = permit_mynetworks,check_sender_access hash:/etc/postfix/not_from_me,reject
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
[root@vuwunicomailmp1 postfix]#



regards

Steven



From: [hidden email] <[hidden email]> on behalf of Steven Jones <[hidden email]>
Sent: Monday, 14 September 2020 9:41 AM
Cc: [hidden email] <[hidden email]>
Subject: Re: postfix rejecting local email.
 
Trying to but I dont understand what I am missing.

regards

Steven



From: Pau Amma <[hidden email]>
Sent: Monday, 14 September 2020 9:40 AM
To: Steven Jones <[hidden email]>
Cc: [hidden email] <[hidden email]>
Subject: Re: postfix rejecting local email.
 
On 2020-09-13 21:22, Steven Jones wrote:
> I am trying to setup a mailman server but it has a different
> domainname to the hostname and its FQDN.  When I try and create a list
> and Mailman tries to send it I get,
>
> I get this error,
>
> 8><---
> Sep 14 09:12:49 vuwunicomailmp1 postfix/smtpd[66783]: fatal: in
> parameter smtpd_relay_restrictions or smtpd_recipient_restrictions,
> specify at least one working instance of: reject_unauth_destination,
> defer_unauth_destination, reject, defer, defer_if_permit or
> check_relay_domains

Have you tried doing what it tells you to?

[...]

> Sep 14 09:13:50 vuwunicomailmp1 postfix/smtpd[66792]: warning:
> database /etc/postfix/not_from_me.db is older than source file
> /etc/postfix/not_from_me

You may want to check that too.

[...]

> I have set,
>
> mynetworks = 127.0.0.0/8, [::1]/128
>
> myhostname = lists.xxx.ac.nz
>
> mydestination = $myhostname, localhost.$mydomain, localhost,
> lists.xxx.ac.nz, xxx.ac.nz

https://apc01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.postfix.org%2FDEBUG_README.html%23mail&amp;data=02%7C01%7Csteven.jones%40vuw.ac.nz%7C2eba32c9adc24ba6479d08d8582d9d0a%7Ccfe63e236951427e8683bb84dcf1d20c%7C0%7C1%7C637356300238850650&amp;sdata=GWJokOKq7%2Bj3mBryWLD1nuIP%2F8oWHDZ6OqTQri%2FnLA0%3D&amp;reserved=0