summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/postfix/postfix.inc
Commit message (Collapse)AuthorAgeFilesLines
* postfix: upgrade 3.7.3 -> 3.8.5Yi Zhao2024-03-011-222/+0
| | | | | | | | | | | | | | | | | ChangeLog: https://www.postfix.org/announcements/postfix-3.8.0.html https://www.postfix.org/announcements/postfix-3.8.1.html https://www.postfix.org/announcements/postfix-3.8.2.html https://www.postfix.org/announcements/postfix-3.8.3.html https://www.postfix.org/announcements/postfix-3.8.4.html https://www.postfix.org/announcements/postfix-3.8.5.html * Drop 0006-makedefs-Account-for-linux-6.x-version.patch as the issue has been fixed upstream. * Merge inc file into single recipe Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: fix multilib conflict of sample-main.cfKai Kang2022-12-051-1/+1
| | | | | | | | | | | | | It fails to install postfix and lib32-postfix at same time: | Error: Transaction test error: | file /etc/postfix/sample-main.cf conflicts between attempted installs of lib32-postfix-cfg-3.7.3-r0.i586 and postfix-cfg-3.7.3-r0.core2_64 Rename sample-main.cf with ${MLPREFIX}. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: Add missing dependency on m4Khem Raj2021-09-241-1/+1
| | | | | | | Fixes | extract_cfg.sh: line 42: m4: command not found Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: Inherit pkgconfigKhem Raj2021-09-241-1/+1
| | | | | | It was part of default dependencies before Signed-off-by: Khem Raj <raj.khem@gmail.com>
* Convert to new override syntaxMartin Jansa2021-08-031-20/+20
| | | | | | | | | | This is the result of automated script (0.9.1) conversion: oe-core/scripts/contrib/convert-overrides.py . converting the metadata to use ":" as the override character instead of "_". Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* postfix: Upgrade 3.4.10 -> 3.4.12Adrian Bunk2020-05-211-1/+1
| | | | | | | | Remove patch applied upstream. Manual -fcommon is no longer necessary. Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: Upgrade to 3.4.10 and compile with -fcommonKhem Raj2020-05-161-1/+1
| | | | | | Ensures it can build with gcc10 Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: split ${PN}-bin from ${PN} to solve recursive dependencyYi Zhao2020-04-171-7/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | The commit 89d86b96f80d8a136d38113baf69d8ccad5a5ff6 which tries to fix the installation issue for ostree introduces a recursive dependency issue. When installing the postfix package on target via online repository, the postinst function for postfix-cfg package needs newaliases but this command is from postfix package which causes an error: Configuring postfix-cfg. /var/lib/opkg/info/postfix-cfg.postinst: line 9: newaliases: not found pkg_run_script: package "postfix-cfg" postinst script returned status 127. Split a new package postfix-bin from postfix and make it as the runtime dependency for postfix-cfg. Set USERADD_PACKAGES to ${PN}-bin to avoid image do_rootfs warnings when installing postfix via IMAGE_INSTALL: [log_check] warning: group postdrop does not exist - using root [log_check] warning: user postfix does not exist - using root Set ALTERNATIVE to ${PN}-bin to make sure the newaliases symbolic link is installed before installing postfix-cfg. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix.inc: make deterministic buildHongxu Jia2019-10-251-19/+6
| | | | | | | | | | | | | This postinst can fail depending on host setup, which makes non-deterministic build on different host. Use postinst ontarget to always fail at do_rootfs and rerun at target first boot. In this situation, remove postfix-native from PACKAGE_WRITE_DEPS Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: split /etc from ${PN} to ${PN}-cfg for ostreeHongxu Jia2019-10-251-2/+5
| | | | | | | | | | | | | | | | | | | In postinst of ${PN}, call newaliases on etc may fail at do_rootfs due to host setup. If fail, the postinst will rerun at target first boot which cause update-alternatives in postinst rerun. For ostree system, /usr is readonly, /etc is writable, the update-alternatives will be failed when run on target since it needs write files in /usr. Split the postinst into two packages can fix the problem: * update-alternatives runs at do_rootfs * newaliases runs at do_rootfs or first boot, it needs write files in /etc when run at first boot, while /etc is writable for ostree. For non-ostree, everything will be OK as normal Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: Fix build failures with glibc 2.30Khem Raj2019-07-301-11/+0
| | | | Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: use alternatives to manage /usr/lib/sendmailQi.Chen@windriver.com2019-07-151-6/+5
| | | | | | | | There are several packages which all provide /usr/lib/sendmail when lsb is enabled. So use alternative to manage it. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: add -lnsl and -lresolv to SYSLIBS by defaultYi Zhao2018-10-121-18/+0
| | | | | | | | | | | | When building native package, the do_compile function tries to check libnsl.so and libresolv.so on host machine and add -lnsl and -lresolv to SYSLIBS if they exist. But finally it will link the libnsl.so from ${STAGING_LIBDIR_NATIVE}. Actually there is no need to check them since the libnsl2 is specified in DEPENDS and libresolv.so is from c libarary. So add -lnsl and -lresolv to SYSLIBS directly. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: fix pkg_postinst_${PN}Mingli Yu2018-09-141-3/+3
| | | | | | | | | | | | | | | | | "exit 0" will break the postinst logic below the line "exit 0" such as: === update-alternatives --install /usr/sbin/sendmail sendmail /usr/sbin/sendmail.postfix 120 update-alternatives --install /usr/bin/mailq mailq /usr/bin/mailq.postfix 120 update-alternatives --install /usr/bin/newaliases newaliases /usr/bin/newaliases.postfix 120 === It's enough to call "$INTERCEPT_DIR/postinst_intercept delay_to_first_boot ${PKG} mlprefix=${MLPREFIX}" , so remove it to guarantee the postinstall logic is correct Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: add sendmail to ALTERNATIVE_${PN}Mingli Yu2018-09-051-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There are several packages provide ${sbindir}/sendmail and should add sendmail to ALTERNATIVE_${PN} to make it work well. And the sendmail is removed from ALTERNATIVE_${PN} in below commit: === commit 7b500488115c67d657312135b48027a1c26e0955 Author: Lei Maohui <leimaohui@cn.fujitsu.com> Date: Fri Aug 17 18:19:53 2018 -0700 postfix,esmtp: Fix confilct error in do_rootfs Error: Transaction check error: file /usr/bin/mailq conflicts between attempted installs of esmtp-1.2-r0.x86_64 and postfix-3.2.2-r0.x86_64 file /usr/bin/newaliases conflicts between attempted installs of esmtp-1.2-r0.x86_64 and postfix-3.2.2-r0.x86_64 Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com> === Add it back to make sendmail works normally before adding it back: # mime-construct --to root --subject mail-20826 --encoding 7bit --string mail_content sendmail: account default not found: no configuration file available Error closing sendmail: non-zero exit (78) at /usr/bin/mime-construct line 572. # echo $? 78 After adding it back: # mime-construct --to root --subject mail-20826 --encoding 7bit --string mail_content # echo $? 0 Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix,esmtp: Fix confilct error in do_rootfsLei Maohui2018-08-191-3/+4
| | | | | | | | | Error: Transaction check error: file /usr/bin/mailq conflicts between attempted installs of esmtp-1.2-r0.x86_64 and postfix-3.2.2-r0.x86_64 file /usr/bin/newaliases conflicts between attempted installs of esmtp-1.2-r0.x86_64 and postfix-3.2.2-r0.x86_64 Signed-off-by: Lei Maohui <leimaohui@cn.fujitsu.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: upgrade 3.2.2 -> 3.2.6Yi Zhao2018-07-041-2/+2
| | | | | | | | | | License-Update: The postfix is distributed with a dual license since 3.2.5: IBM Public License 1.0 and Eclipse Public License 2.0. Recipients can choose to take the software under the license of their choice. Those who are more comfortable with the IPL can continue with that license. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: Remove useless file makedeps.out of postfixchangqing.li@windriver.com2018-06-051-6/+2
| | | | | | | | file /etc/postfix/makedeps.out is useless, remove it. makedeps.out is intermediate file that documents how Postfix was built for your machine. Signed-off-by: Changqing Li <changqing.li@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
* postfix: Depend on external libnslKhem Raj2018-05-171-3/+1
| | | | | | | Glibc has dropped libnsl Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Armin Kuster <akuster808@gmail.com>
* postfix: remove host references from makedefs.outSlater, Joseph2018-05-171-0/+1
| | | | | | | Several -I definitions contain the value of ${STAGING_DIR_TARGET} which should be removed to reference directories on the target. Signed-off-by: Joe Slater <joe.slater@windriver.com>
* postfix: adapt pkg_postinst to postinst_interceptSlater, Joseph2018-04-061-5/+10
| | | | | | | | | Request delay to first boot if newaliases fails on host. Check for linuxstdbase before we might fail. Signed-off-by: Joe Slater <joe.slater@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: fix generating aliases db filesYi Zhao2018-02-051-9/+8
| | | | | | | | | | | | | | When generating aliases db files, the newaliases tries to chdir /var/spool/postfix on the host. It would cause a failure if the host doesn't install postfix: newaliases: fatal: chdir /var/spool/postfix: No such file or directory Move this step from do_install to pkg_postinst to make sure newaliases and postmap run during the image creation. Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: drop NATIVE_INSTALL_WORKSArmin Kuster2018-01-081-2/+0
| | | | | | | | | | | This variable hasn't been used in a very long time, so there's no need to be setting it here. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Hand applied Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: virtual/db isn't used by core, change to dbRoss Burton2018-01-081-2/+2
| | | | | | Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: fix send mail failure and eliminate warningYi Zhao2018-01-081-13/+15
| | | | | | | | | | | | | | | | | | | * Update main.cf for postfix 3.x to eliminate startup warning * Set daemon_directory from ${libexecdir} to ${libexecdir}/postfix * Using absolute path for newaliases and postmap to generate the correct db file in pkg_postinst * Remove duplicate SRC_URI lines in postfix_3.2.2.bb (LOCAL REV: NOT UPSTREAM) -- will sent to oe-devel later Signed-off-by: Yi Zhao <yi.zhao@windriver.com> * Move use of newaliases and postmap on host to install phase because absolute path might not exist at rootfs build time. Signed-off-by: Joe Slater <jslater@windriver.com> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: Fix build with security flags and clangKhem Raj2017-09-121-1/+1
| | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: Upgrade to 3.2.2Khem Raj2017-09-121-1/+1
| | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: Disable nis support on muslKhem Raj2017-09-081-1/+5
| | | | | | Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: do NOT create directory /var/spool/mailKai Kang2017-04-261-2/+0
| | | | | | | | | | | | | | | | postfix installs directory /var/spool/mail which conflicts with package shadow. | Error: Transaction check error: | file /var/spool/mail conflicts between attempted installs of | postfix-3.1.1-r0.ppc64e6500 and shadow-4.2.1-r0.1.ppc64e6500 Make postfix not create /var/spool/mail that it does NOT create the directory on Fedora and Ubuntu either. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: remove references to buildmachine paths in target makedefs.outYi Zhao2017-03-241-1/+1
| | | | | | | | Clean the buildmachine paths in makedefs.out Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: add dependency icuKai Kang2016-12-141-2/+2
| | | | | | | | | | | | | It calls icu-config to detect icu support in file makedefs of postfix. The compile results are different depends on whether icu has been built already. postfix should provide Unicode support, so add dependency icu to solve the problem. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: Fix rootfs creation errorsDai Caiyun2016-06-011-0/+5
| | | | | | | | | | | | | 1) error: file /usr/share/man/man1/mailq.1 from install of postfix-doc conflicts with file from package esmtp-doc 2) error: file /usr/share/man/man1/newaliases.1 from install of postfix-doc conflicts with file from package esmtp-doc 3) error: file /usr/share/man/man1/sendmail.1 from install of postfix-doc conflicts with file from package esmtp-doc Signed-off-by: Dai Caiyun <daicy.fnst@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* meta-networking: use bb.utils.contains() instead of base_contains()Ross Burton2016-05-051-6/+6
| | | | | | | | | base_contains() is a compatibility wrapper and may warn in the future, so replace all instances with bb.utils.contains(). Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: fix clean broken issueHongxu Jia2016-02-291-0/+2
| | | | | | | | | | | | | | | | | | | | | | | There is a build failure while rebuilding postfix ... | NOTE: make -e MAKEFLAGS= OPT= DEBUG= OPTS= clean | make -f Makefile.in MAKELEVEL= Makefiles | (echo "# Do not edit -- this file documents how Postfix was built for your machine.";/bin/sh makedefs) >makedefs.tmp | No <db.h> include file found. | Install the appropriate db*-devel package first. | Makefile.in:31: recipe for target 'Makefiles' failed | make: *** [Makefiles] Error 1 | Makefile:21: recipe for target 'Makefiles' failed | make: *** [Makefiles] Error 2 | ERROR: oe_runmake failed | ERROR: Function failed: do_configure (log file is located at tmp/work/ core2-64-wrs-linux/postfix/3.0.2-r0/temp/do_configure/log.do_configure.12848) ... Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix.inc: fix start postfix failed while hostname is numericHongxu Jia2016-01-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | While hostname is numeric, start postfix failed ... root@qemux86-64:~# hostname 1.2.3.4 root@qemux86-64:~# systemctl restart postfix |Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service" and "journalctl -xe" for details. root@qemux86-64:~# systemctl status postfix -l Dec 02 08:05:40 1.2.3.4 aliasesdb[535]: /usr/sbin/postconf: fatal: unable to use my own hostname Dec 02 08:05:41 1.2.3.4 aliasesdb[535]: newaliases: warning: valid_hostname: numeric hostname: 1.2.3.4 Dec 02 08:05:41 1.2.3.4 postfix/sendmail[537]: warning: valid_hostname: numeric hostname: 1.2.3.4 Dec 02 08:05:41 1.2.3.4 aliasesdb[535]: newaliases: fatal: unable to use my own hostname Dec 02 08:05:42 1.2.3.4 postfix[540]: warning: valid_hostname: numeric hostname: 1.2.3.4 Dec 02 08:05:42 1.2.3.4 postfix[540]: fatal: unable to use my own hostname ... Refer meta/recipes-core/initscripts/initscripts-1.0/hostname.sh in oe-core, add check_hostname.sh and invoke it before postfix start, if the hostname is invalid, set "localhost" to main.cf. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix.inc: do not hardcode userid and groupidHongxu Jia2015-10-211-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It hardcoded to assign vmail's userid and groupid with 5000, which caused the following useradd/groupadd is increased from 5000 at do_root time. Such as 'tracing' group id is 5001 (tracing group is added in lttng-tools). It is better to allocate it dynamically. BTW, you may google to find the hardcoded 5000 in following site: https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto In its main.cf, it also hardcoded virtual_uid_maps and virtual_gid_maps. ... virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 .. But in meta-oe's main.cf_2.0, it assigned virtual_uid_maps and virtual_gid_maps with a search. ... virtual_uid_maps = static:`grep vmail /etc/passwd | cut -d ":" -f 3` virtual_gid_maps = static:`grep vmail /etc/passwd | cut -d ":" -f 4` ... So please feel free to forget 5000. Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* recipes: use class-native instead of deprecated virtclass-native.Ross Burton2015-08-241-6/+6
| | | | | | virtclass overrides are deprecated, so use class overrides instead. Signed-off-by: Ross Burton <ross.burton@intel.com>
* postfix: upgrade from 2.11.1 to 3.0.1Li xin2015-07-161-0/+1
| | | | | | | | | | | | | | 1.Remove postfix-add-db6-support.patch which is not needed, since it is backported from upstream. 2.update install.patch and makedefs.patch that context changes. 3.Install smtp-sink which listens on the named host (or address) and port. It takes SMTP messages from the network and throws them away. Ref: http://www.postfix.org/smtp-sink.1.html Signed-off-by: Li Xin <lixin.fnst@cn.fujitsu.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: Add explict getVar expansion parameterRichard Purdie2015-07-151-1/+1
| | | | | | | | | | | | | Bitbake is likely to require this parameter in future, add the default value. Patch generated with the command: sed -e 's:\(getVar([^,()]*\)\s*):\1, False):g' -i `grep -ril getVar *` Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: update daemon_directory in main.cf_2.0Kang Kai2015-07-061-0/+2
| | | | | | | | | | daemon_directory is set to /usr/lib/postfix which causes daemon postfix fails to start on 64 bits target if enable multilib. Set daemon_directory with libexecdir to fix it. Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* meta-networking: standardize SECTION valuesJoe MacDonald2015-06-051-1/+1
| | | | | | | SECTION has been used inconsistently throughout the recipes in this layer. Convert them to all use the same convention. Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: get rid of useless codeBian Naimeng2015-03-111-1/+0
| | | | | | | | We should set group of ${localstatedir}/lib/postfix to 'nogroup' not 'postfix', actually it's done at the below, so remove this useless code. Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: add link file /usr/lib/sendmailKang Kai2015-03-101-0/+5
| | | | | | | | | | | | | | | | | | | Link file /usr/lib/sendmail points to /usr/sbin/sendmail is required by LSB core test according to Linux FHS[Ref2]: "For historical reasons, /usr/lib/sendmail must be a symbolic link to /usr/sbin/sendmail if the latter exists." The linke file was provided by package lsb before, but should be provided by packages which provides command sendmail such as msmtp, postfix and esmtp etc. Refs: 1 http://refspecs.linuxfoundation.org/LSB_4.1.0/LSB-Core-generic/LSB-Core-generic/normativerefs.html#STD. 2 http://www.pathname.com/fhs/pub/fhs-2.3.html#SPECIFICOPTIONS13 Signed-off-by: Kai Kang <kai.kang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: don't hard-code PATH in service fileBian Naimeng2015-02-231-1/+3
| | | | | | Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: instead ${exec_prefix}/libexec/${PN} by ${libexecdir}Bian Naimeng2015-02-111-4/+4
| | | | | | Signed-off-by: Bian Naimeng <biannm@cn.fujitsu.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: start the postfix daemon by default when init is systemdRoy Li2015-02-111-1/+0
| | | | | | | | | postfix should be started by default, so that the root user can receive mail, and if init is not systemd, it is started by default Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: Fix indentationMartin Jansa2014-11-211-143/+143
| | | | | | * we're using 4 spaces, not mix of tabs and spaces\! Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
* postfix.inc: Remove references to buildmachine paths in target makedefs.outJackie Huang2014-11-211-0/+5
| | | | | | | | | | | Fixed the buildpaths QA issue: ERROR: QA Issue: File /work/core2-64-wrs-linux/postfix/2.11.1-r0/packages-split/postfix/etc/postfix/makedefs.out in package contained reference to tmpdir [buildpaths] Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: create or update aliases.db when using systemdRoy Li2014-11-101-0/+3
| | | | | | | | | | | | | | aliases.db should be created by postinstall script, but failed since queue_directory is not includes root dir ${D}: ------ |newaliases: fatal: chdir /var/spool/postfix: No such file or directory ------ initscript will recall newaliases before start postfix daemon, the similar method, which run aliasesdb to create aliases.db when using systemd, is introduced to fix this issue. Signed-off-by: Roy.Li <rongqing.li@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
* postfix: add new recipeJackie Huang2014-07-201-0/+230
Postfix is Wietse Venema's mail server that started life at IBM research as an alternative to the widely-used Sendmail program. Postfix attempts to be fast, easy to administer, and secure. The outside has a definite Sendmail-ish flavor, but the inside is completely different. Signed-off-by: Jackie Huang <jackie.huang@windriver.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>