nttcom-ms / eyp-postfix Goto Github PK
View Code? Open in Web Editor NEWpostfix management - relay or multidomain mailserver
License: Apache License 2.0
postfix management - relay or multidomain mailserver
License: Apache License 2.0
I get just "Recipient address rejected: Access denied" errors with the example-setup. I'm pretty sure I missing something, but i can't figure it out :-(
class { 'postfix':
mynetworks => [ '127.0.0.1/32',"${ipaddress_eth0}/32" ],
ipv6 => false,
inetinterfaces => 'all',
mydestination => [ 'mysub.example.com', $::fqdn, 'localhost' ],
myhostname => 'mysub.example.com',
smtpdbanner => 'mysub.example.com ESMTP',
}
class { 'postfix::vmail': }
postfix::vmail::alias { '[email protected]':
aliasto => [ '[email protected]' ],
}
postfix::vmail::account { '[email protected]':
accountname => 'virtual_user1',
domain => 'mysub.example.com',
password => 'secretpassw0rd',
}
I get this error
Dec 2 04:00:44 srv6 private/smtpd[4933]: NOQUEUE: reject: RCPT from mail-lj1-f176.google.com[209.85.208.176]: 554 5.7.1 <[email protected]>: Recipient address rejected: Access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mail-lj1-f176.google.com>```
I am using redhat 8 and getting:
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Unsupported RHEL/CentOS version! (file: /etc/puppetlabs/code/environments/jsmelser/modules/postfix/manifests/mastercf.pp, line: 474, column: 20) on node drvlopsptr801.trustamerica.com
I am using: mod 'eyp-postfix', '0.2.39'
So I am on the latest release. but it seems like that file, according to source, was change to support redhat 8?
Hi, this is not related to code itself but to the puppet forge page https://forge.puppet.com/eyp/postfix. Project URL points to your squid project. Please repair it to correct URL: https://github.com/NTTCom-MS/eyp-postfix ;)
Ubuntu 18.04
Notice: /Stage[main]/Postfix/Exec[postfix mkdir /etc/pki/tls/private]/returns: executed successfully
Notice: /Stage[main]/Postfix/Exec[postfix mkdir /etc/pki/tls/certs]/returns: executed successfully
Notice: /Stage[main]/Postfix/Exec[openssl pk]/returns: executed successfully
Notice: /Stage[main]/Postfix/Exec[openssl cert]/returns: executed successfully
Info: /Stage[main]/Postfix/Exec[openssl cert]: Scheduling refresh of Class[Postfix::Service]
Notice: /Stage[main]/Postfix/Package[mailutils]/ensure: created
Notice: /Stage[main]/Postfix/Group[postfix]/gid: gid changed 117 to 89
Error: Could not set uid on user[postfix]: Execution of '/usr/sbin/usermod -u 89 postfix' returned 8: usermod: user postfix is currently used by process 4220
Error: /Stage[main]/Postfix/User[postfix]/uid: change from 112 to 89 failed: Could not set uid on user[postfix]: Execution of '/usr/sbin/usermod -u 89 postfix' returned 8: usermod: user postfix is currently used by process 4220
Notice: /Stage[main]/Postfix/File[/var/lib/postfix]: Dependency User[postfix] has failures: true
Warning: /Stage[main]/Postfix/File[/var/lib/postfix]: Skipping because of failed dependencies
relevant part of the code
eyp-postfix/manifests/params.pp
Line 68 in b753fb7
but looking at multiple Ubuntu install, postfix uid seems variable.
any option to let it as is?
Thanks
Hello,
I tried you module on Debian and it failed :
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, Unsupported (file: /etc/puppetlabs/code/environments/qualification/modules/postfix/manifests/params.pp, line: 131, column: 21) on node client.domain.local
On line 131 I got :
'Debian': { fail('Unsupported') }
While trying role
$ librarian-puppet install --verbose
[Librarian] Ruby Version: 2.3.1
[Librarian] Ruby Platform: x86_64-linux-gnu
[Librarian] Rubygems Version: 2.5.2.1
[Librarian] Librarian Version: 0.6.3
[Librarian] Librarian Adapter: puppet
[Librarian] Librarian Adapter Version: 2.2.1
[Librarian] Project: /media/user/26fcf073-3d3f-450e-bd49-f3b505a46ab5/tmp/Lab1/git-roles/puppet-meta-harden-linux
[Librarian] Specfile: Puppetfile
[Librarian] Lockfile: Puppetfile.lock
[Librarian] Git: /usr/bin/git
[Librarian] Git Version: 2.7.4
[Librarian] Git Environment Variables:
[Librarian] (empty)
[Librarian] Pre-Cached Sources:
[Librarian] [:forge, "https://forgeapi.puppetlabs.com", {}]
[Librarian] Post-Cached Sources:
[Librarian] [:forge, "https://forgeapi.puppetlabs.com", {}]
[Librarian] Analyzing spec and lock:
[Librarian] Removed:
[Librarian] ExplicitRemoved:
[Librarian] Added:
[Librarian] eyp-postfix
[Librarian] NonMatchingAdded:
[Librarian] eyp-postfix
[Librarian] Changed:
[Librarian] DeepKeep:
[Librarian] bryana-osquery
[Librarian] eyp-epel
[Librarian] geoffwilliams-auditd
[Librarian] hardening-hardening_stdlib
[Librarian] hardening-os_hardening
[Librarian] hardening-ssh_hardening
[Librarian] itmanagerro-rkhunter
[Librarian] justinjl-smarthost
[Librarian] puppet-fail2ban
[Librarian] puppet-rsyslog
[Librarian] puppetlabs-accounts
[Librarian] puppetlabs-apt
[Librarian] puppetlabs-concat
[Librarian] puppetlabs-firewall
[Librarian] puppetlabs-ntp
[Librarian] puppetlabs-stdlib
[Librarian] ShallowStrip:
[Librarian] Resolving eyp-postfix (>= 0) <https://forgeapi.puppetlabs.com>
[Librarian] Checking manifests
[Librarian] Module eyp-postfix found versions: 0.2.32, 0.2.29, 0.2.25
[Librarian] Checking eyp-postfix/0.2.32 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved eyp-postfix (>= 0) <https://forgeapi.puppetlabs.com> at eyp-postfix/0.2.32 <https://forgeapi.puppetlabs.com>
[Librarian] Resolved eyp-postfix (>= 0) <https://forgeapi.puppetlabs.com>
[Librarian] Resolving eyp-dovecot (< 0.2.0, >= 0.1.3) <(no source specified)>
[Librarian] Checking manifests
[Librarian] Module eyp-dovecot found versions: 0.1.12, 0.1.10, 0.1.9, 0.1.8, 0.1.3, 0.1.2, 0.1.0
[Librarian] Checking eyp-dovecot/0.1.12 <https://forgeapi.puppetlabs.com>
[Librarian] Cycle with eyp-dovecot/0.1.12 <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from eyp-dovecot/0.1.12 <https://forgeapi.puppetlabs.com>
[Librarian] Checking eyp-dovecot/0.1.10 <https://forgeapi.puppetlabs.com>
[Librarian] Cycle with eyp-dovecot/0.1.10 <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from eyp-dovecot/0.1.10 <https://forgeapi.puppetlabs.com>
[Librarian] Checking eyp-dovecot/0.1.9 <https://forgeapi.puppetlabs.com>
[Librarian] Cycle with eyp-dovecot/0.1.9 <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from eyp-dovecot/0.1.9 <https://forgeapi.puppetlabs.com>
[Librarian] Checking eyp-dovecot/0.1.8 <https://forgeapi.puppetlabs.com>
[Librarian] Cycle with eyp-dovecot/0.1.8 <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from eyp-dovecot/0.1.8 <https://forgeapi.puppetlabs.com>
[Librarian] Checking eyp-dovecot/0.1.3 <https://forgeapi.puppetlabs.com>
[Librarian] Cycle with eyp-dovecot/0.1.3 <https://forgeapi.puppetlabs.com>
[Librarian] Backtracking from eyp-dovecot/0.1.3 <https://forgeapi.puppetlabs.com>
[Librarian] Checking eyp-dovecot/0.1.2 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between eyp-dovecot/0.1.2 <https://forgeapi.puppetlabs.com> and eyp-dovecot (< 0.2.0, >= 0.1.3) <(no source specified)>
[Librarian] Backtracking from eyp-dovecot/0.1.2 <https://forgeapi.puppetlabs.com>
[Librarian] Checking eyp-dovecot/0.1.0 <https://forgeapi.puppetlabs.com>
[Librarian] Conflict between eyp-dovecot/0.1.0 <https://forgeapi.puppetlabs.com> and eyp-dovecot (< 0.2.0, >= 0.1.3) <(no source specified)>
[Librarian] Backtracking from eyp-dovecot/0.1.0 <https://forgeapi.puppetlabs.com>
[Librarian] Failed to resolve eyp-dovecot (< 0.2.0, >= 0.1.3) <(no source specified)>
Could not resolve the dependencies.
or
https://travis-ci.org/juju4/puppet-meta-harden-linux/jobs/420576055#L2312
https://travis-ci.org/juju4/puppet-meta-harden-linux/jobs/420576059#L2845
there is a circular dependency between dovecot (latest 0.1.12) and postfix (latest 0.2.32)
It's not clear why it is backtracking.
Any idea?
Thanks
So the default message_size_limit in postfix is 10m. We had to update it today but this module does not support it. I forked the module for now.
Either
A is it possible to add the parameter?
B add a "extra_config" hash array so we can add any extra stuff?
C Both?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.