[pfx] Re: Problem with /var/spool/postfix/etc/resolv.conf after removing systemd-resolved
On Tue, Jun 04, 2024 at 10:00:28AM +0100, Chris Green via Postfix-users wrote: > I run dnsmasq instead of systemd-resolved on all my systems. > > I recently moved my dekstop server to new hardware running xubuntu > 24.04 replacing my previous system that was running xubuntu 22.04. > > I installed dnsmasq and removed systemd-resolved and all seemed well > until I noticed I couldn't send E-Mail, I run a postfix 3.8.6 server > which sends outgoing E-Mail via my ISP's smarthost. > > In the mail.log I was seeing lots of messages like:- > > 2024-06-02T00:10:30.652648+01:00 q957 postfix/smtp[8733]: 9763C3542024: > to=, relay=none, delay=8729, delays =8729/0.02/0/0, > dsn=4.4.3, > status=deferred (Host or domain name not found. Name service error for > name=smtp-auth.mythic-beasts.com type=A: Host not found, try again) > > But running 'host smtp-auth.mythic-beasts.com' returned a perfectly OK > address. > > It turned out that the file /var/spool/postfix/etc/resolv.conf was:- > > nameserver 127.0.0.53 > options edns0 trust-ad > search zbmc.eu > > Changing it to:- > > nameserver 127.0.0.53 > options edns0 trust-ad > search zbmc.eu > > Has fixed the problem. > > However I'm sure this isn't the 'right' way to do this. How do I get > postfix to pick up the resolv.conf file that is used/created by dnsmasq? > Ooops!!! That should be Changing it to:- nameserver 127.0.0.1 options edns0 trust-ad search zbmc.eu of course! On investigating further it seems that on older systems where I have done this (moved from systemd-resolved to dnsmasq) I have simply hand-edited /etc/resolv.conf and then postfix copies that version to /var/spool/postfix/etc/resolv.conf and all is well. So, is that as it should be? -- Chris Green ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Problem with /var/spool/postfix/etc/resolv.conf after removing systemd-resolved
I run dnsmasq instead of systemd-resolved on all my systems. I recently moved my dekstop server to new hardware running xubuntu 24.04 replacing my previous system that was running xubuntu 22.04. I installed dnsmasq and removed systemd-resolved and all seemed well until I noticed I couldn't send E-Mail, I run a postfix 3.8.6 server which sends outgoing E-Mail via my ISP's smarthost. In the mail.log I was seeing lots of messages like:- 2024-06-02T00:10:30.652648+01:00 q957 postfix/smtp[8733]: 9763C3542024: to=, relay=none, delay=8729, delays =8729/0.02/0/0, dsn=4.4.3, status=deferred (Host or domain name not found. Name service error for name=smtp-auth.mythic-beasts.com type=A: Host not found, try again) But running 'host smtp-auth.mythic-beasts.com' returned a perfectly OK address. It turned out that the file /var/spool/postfix/etc/resolv.conf was:- nameserver 127.0.0.53 options edns0 trust-ad search zbmc.eu Changing it to:- nameserver 127.0.0.53 options edns0 trust-ad search zbmc.eu Has fixed the problem. However I'm sure this isn't the 'right' way to do this. How do I get postfix to pick up the resolv.conf file that is used/created by dnsmasq? -- Chris Green ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: Forward mail
On Mon, Apr 15, 2024 at 04:28:33PM +0200, Benny Pedersen via Postfix-users wrote: > Dimitris via Postfix-users skrev den 2024-04-15 16:22: > > > a totally different approach : > > you could advise those with gmail accounts to use gmail as an email > > client and pull emails from your server. > > maybe not ideal (=trusting their email credentials within google), but > > eitherway, people using gmail already share too much personal data with > > them. :) > > gmail users is scarred to setup roundcube for the better webmail :) gmail users may well be scarred but I suspect you meant scared! :-) -- Chris Green ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: [ext] Why can't I get /etc/aliases to do anything?
On Tue, Dec 05, 2023 at 11:53:24AM -0500, Wietse Venema via Postfix-users wrote: > Ralf Hildebrandt via Postfix-users: > > * Chris Green via Postfix-users : > > > On Tue, Dec 05, 2023 at 05:41:11PM +0100, Ralf Hildebrandt via > > > Postfix-users wrote: > > > > * Chris Green via Postfix-users : > > > > > > > > > mydestination = > > > > > > > > no mail is delivered locally. Thus "/etc/aliases" doesn't get to do > > > > anything > > > > > > > Ah, that explains it. > > > > > > So what's the minimal way of doing this? > > > > > > I don't want to deliver any mail locally but I do want something like > > > /etc/aliases to redirect mail sent to root (i.e. errors) to me off site. > > > > I'd say: > > leave mydestination at the default (delete the line from main.cf) > > then it should work. > > If you want to alias off-host delivery, use virtual_alias_maps. > > user@example other-u...@example.com > > Note this file has different syntax than /etc/aliases (no colon). > Thank you Wietse, that would seem to be a sensible way to handle it. -- Chris Green ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: [ext] Why can't I get /etc/aliases to do anything?
On Tue, Dec 05, 2023 at 05:41:11PM +0100, Ralf Hildebrandt via Postfix-users wrote: > * Chris Green via Postfix-users : > > > mydestination = > > no mail is delivered locally. Thus "/etc/aliases" doesn't get to do > anything > Ah, that explains it. So what's the minimal way of doing this? I don't want to deliver any mail locally but I do want something like /etc/aliases to redirect mail sent to root (i.e. errors) to me off site. -- Chris Green ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Why can't I get /etc/aliases to do anything?
I have several, small, headless systems (a couple of Beaglebone Blacks, a couple of Raspberry Pis and some VPS's) where I want to send any E-Mail for local users off the system to my own E-Mail. They are all running postfix, versions from 3.4.x to 3.7.x. They all have a pretty trivial, send-only, main.cf: smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU) biff = no append_dot_mydomain = no readme_directory = no compatibility_level = 2 alias_maps = hash:/etc/aliases alias_database = hash:/etc/aliases smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtp_tls_CApath=/etc/ssl/certs smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache luser_relay=ch...@isbd.co.uk myhostname = odin myorigin = odin mydestination = relayhost = [smtp-auth.mythic-beasts.com]:465 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = loopback-only inet_protocols = ipv4 smtp_sasl_auth_enable = yes smtp_tls_wrappermode = yes smtp_tls_security_level = encrypt smtp_sasl_tls_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd message_size_limit = 12048 This particular main.cf is on a Beaglebone Black in France. /etc/aliases is:- postmaster:root root: ch...@isbd.co.uk chris: ch...@isbd.co.uk If I send a message to 'chris' (using mailx from the command line), it gets sent off-site to chris@odin without the aliases being applied. How do I simply get the aliases to actually do something please? Oh, here is the mail.log for a message sent to chris:- Dec 5 16:34:36 odin postfix/pickup[1823]: 677DFBAD: uid=0 from= Dec 5 16:34:36 odin postfix/cleanup[2002]: 677DFBAD: message-id=<20231205163436.677DFBAD@odin> Dec 5 16:34:36 odin postfix/qmgr[1824]: 677DFBAD: from=, size=371, nrcpt=1 (queue active) Dec 5 16:34:37 odin postfix/smtp[2004]: 677DFBAD: to=, orig_to=, relay=smtp-auth.mythic-beasts.com[46.235.227.24]:465, delay=0.99, delays=0.16/0.11/0.51/0.21, dsn=2.0.0, status=sent (250 OK id=1rAYNY-002U3U-Hf) Dec 5 16:34:37 odin postfix/qmgr[1824]: 677DFBAD: removed -- Chris Green ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Can one override use of myorigin for an unqualified recipient?
On the Postfix Basic Configuration page it says:- For the sake of consistency between sender and recipient addresses, myorigin also specifies the domain name that is appended to an unqualified recipient address. Is there any way to override this, i.e. can one explicitly set the domain that is appended to an unqualified recipient address to some value other than myorigin? I have a number of 'send only' systems running Postfix and I want mail sent to 'chris' to be sent to my home server not to user chris on the sending system. However I need myorigin set to the name of the sending machine so that I can see where the (error) message came from. -- Chris Green ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: How to configure minimal POP3/IMAP server with postfix?
On Mon, Jul 10, 2023 at 10:54:19AM +0200, Jaroslaw Rafa via Postfix-users wrote: > Dnia 10.07.2023 o godz. 09:10:32 Chris Green via Postfix-users pisze: > > > > What's the simplest way to do this? I looked in the "Postfix Howtos > > and FAQs" page but there didn't seem to be any 'minimal' sort of > > setups there. They also seemed rather old. > > > > So, can I just install and configure Dovecot with Postifx delivering > > mail to /var/mail? > > > > ... and is Dovecot the way to go? > > Yes, that's probably the simplest thing you can do :) OK, thanks all. -- Chris Green ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] How to configure minimal POP3/IMAP server with postfix?
I run simple Postfix setups on a number of systems, these are all systems which only have a very few users, two or three at the most. I want to add IMAP/POP3 access to one of the systems (it's a VPS but that's probably irrelevant). This will again be for only two or three users. What's the simplest way to do this? I looked in the "Postfix Howtos and FAQs" page but there didn't seem to be any 'minimal' sort of setups there. They also seemed rather old. So, can I just install and configure Dovecot with Postifx delivering mail to /var/mail? ... and is Dovecot the way to go? -- Chris Green ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org
[pfx] Re: Please remove mailing list tag
On Wed, Mar 15, 2023 at 11:42:50AM -0400, Marvin Renich via Postfix-users wrote: > * Phil Stracchino via Postfix-users > * [230315 11:11]: > > On 3/15/23 10:36, Marvin Renich via Postfix-users wrote: > > > That technical issue aside, in this thread there have been two > > > posters who expressed a desire to keep the tags, one said get > > > rid of it in users, but keep it in announce (I don't understand > > > his reasoning, I am just reporting his stated preference), > > > > > > Because if you're filtering all Postfix list traffic into the same > > folder, you probably want announcements to stand out at a glance. > > They may be of immediate importance. > > Thanks for clarifying, Phil. I can see that, and since it is a > low-volume list, I would not find it to be particularly bothersome. > My personal preference is not to have the tag as I run a filter to send mailing list messages to their own list's folder. However my filter program also has the ability to remove (space wasting IMHO) tags so that's what I do and I don't see them. ... except of course when a new one like Postfix's appears and I have to tune my filter configuration slightly to remove them again! :-) -- Chris Green ___ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org