public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Postfix config problem
@ 2025-07-18  6:23 Peter Humphrey
  2025-07-18  6:49 ` Arve Barsnes
                   ` (2 more replies)
  0 siblings, 3 replies; 17+ messages in thread
From: Peter Humphrey @ 2025-07-18  6:23 UTC (permalink / raw
  To: gentoo-user

Greetings,

I've been wrestling with postfix for years, and I still can't get it to act as 
the final destination of all incoming mail. Mail from the Internet is fine, but 
mail originating on the LAN is always forwarded to the user's own machine.

(Dovecot then serves IMAP on request to KMail on my desktop machine.)

Here is the relevant content of my latest main.cf:

$ cat main.cf
mynetworks_style = host
relay_domains = 
home_mailbox = .maildir/

Can anyone suggest something else I can try?

-- 
Regards,
Peter.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-18  6:23 [gentoo-user] Postfix config problem Peter Humphrey
@ 2025-07-18  6:49 ` Arve Barsnes
  2025-07-18 10:34   ` Peter Humphrey
  2025-07-18  6:58 ` Eray Aslan
  2025-07-18  9:55 ` Javier Martinez
  2 siblings, 1 reply; 17+ messages in thread
From: Arve Barsnes @ 2025-07-18  6:49 UTC (permalink / raw
  To: gentoo-user

On Fri, 18 Jul 2025 at 08:24, Peter Humphrey <peter@prh.myzen.co.uk> wrote:
> I've been wrestling with postfix for years, and I still can't get it to act as
> the final destination of all incoming mail. Mail from the Internet is fine, but
> mail originating on the LAN is always forwarded to the user's own machine.
>
> (Dovecot then serves IMAP on request to KMail on my desktop machine.)
>
> Here is the relevant content of my latest main.cf:
>
> $ cat main.cf
> mynetworks_style = host
> relay_domains =
> home_mailbox = .maildir/
>
> Can anyone suggest something else I can try?

The mail thing is very confusing, but here is some main.cf settings on
my machine that receives mail from the other machines on the LAN:

inet_interfaces = $myhostname, localhost
mydestination = $myhostname, localhost.$mydomain, localhost, <my local
hostname> <- the simple name, not the hostname.lan that I've set in
'myhostname'
mynetworks = 192.168.0.0/24, 127.0.0.0/8

Hope that helps,
Arve


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-18  6:23 [gentoo-user] Postfix config problem Peter Humphrey
  2025-07-18  6:49 ` Arve Barsnes
@ 2025-07-18  6:58 ` Eray Aslan
  2025-07-18  9:55 ` Javier Martinez
  2 siblings, 0 replies; 17+ messages in thread
From: Eray Aslan @ 2025-07-18  6:58 UTC (permalink / raw
  To: gentoo-user

On Fri, Jul 18, 2025 at 07:23:38AM +0100, Peter Humphrey wrote:
> I've been wrestling with postfix for years, and I still can't get it to act as 
> the final destination of all incoming mail. Mail from the Internet is fine, but 
> mail originating on the LAN is always forwarded to the user's own machine.

Difficult to tell without logs, bit mydestination determines what is
delivered locally. Adding $mydomain to mydestination might help:

https://www.postfix.org/postconf.5.html#mydestination

> (Dovecot then serves IMAP on request to KMail on my desktop machine.)
> 
> Here is the relevant content of my latest main.cf:
> 
> $ cat main.cf
> mynetworks_style = host
> relay_domains = 
> home_mailbox = .maildir/
> 
> Can anyone suggest something else I can try?

And read
https://www.postfix.org/BASIC_CONFIGURATION_README.html
https://www.postfix.org/STANDARD_CONFIGURATION_README.html

-- 
Eray


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-18  6:23 [gentoo-user] Postfix config problem Peter Humphrey
  2025-07-18  6:49 ` Arve Barsnes
  2025-07-18  6:58 ` Eray Aslan
@ 2025-07-18  9:55 ` Javier Martinez
  2 siblings, 0 replies; 17+ messages in thread
From: Javier Martinez @ 2025-07-18  9:55 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 629 bytes --]

El 18/7/25 a las 8:23, Peter Humphrey escribió:
> Greetings,
> 
> I've been wrestling with postfix for years, and I still can't get it to act as
> the final destination of all incoming mail. Mail from the Internet is fine, but
> mail originating on the LAN is always forwarded to the user's own machine.
> 
> (Dovecot then serves IMAP on request to KMail on my desktop machine.)
> 
> Here is the relevant content of my latest main.cf:
> 
> $ cat main.cf
> mynetworks_style = host
> relay_domains =
> home_mailbox = .maildir/
> 
> Can anyone suggest something else I can try?
> 
master.cf would be useful also

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3145 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-18  6:49 ` Arve Barsnes
@ 2025-07-18 10:34   ` Peter Humphrey
  2025-07-18 11:35     ` Javier Martinez
  0 siblings, 1 reply; 17+ messages in thread
From: Peter Humphrey @ 2025-07-18 10:34 UTC (permalink / raw
  To: gentoo-user

On Friday, 18 July 2025 07:49:13 British Summer Time Arve Barsnes wrote:

--->8

> The mail thing is very confusing, but here is some main.cf settings on
> my machine that receives mail from the other machines on the LAN:
> 
> inet_interfaces = $myhostname, localhost
> mydestination = $myhostname, localhost.$mydomain, localhost, <my local
> hostname> <- the simple name, not the hostname.lan that I've set in
> 'myhostname'
> mynetworks = 192.168.0.0/24, 127.0.0.0/8
> 
> Hope that helps,
> Arve

Not quite, Arve; sorry. Quoting the simple name causes postfix to add 
".localdomin" to it.

I'll read the FM as Eray said, which I'd forgotten about.

-- 
Regards,
Peter.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-18 10:34   ` Peter Humphrey
@ 2025-07-18 11:35     ` Javier Martinez
  2025-07-18 14:50       ` Peter Humphrey
  0 siblings, 1 reply; 17+ messages in thread
From: Javier Martinez @ 2025-07-18 11:35 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 1373 bytes --]

El 18/7/25 a las 12:34, Peter Humphrey escribió:
> On Friday, 18 July 2025 07:49:13 British Summer Time Arve Barsnes wrote:
> 
> --->8
> 
>> The mail thing is very confusing, but here is some main.cf settings on
>> my machine that receives mail from the other machines on the LAN:
>>
>> inet_interfaces = $myhostname, localhost
>> mydestination = $myhostname, localhost.$mydomain, localhost, <my local
>> hostname> <- the simple name, not the hostname.lan that I've set in
>> 'myhostname'
>> mynetworks = 192.168.0.0/24, 127.0.0.0/8
>>
>> Hope that helps,
>> Arve
> 
> Not quite, Arve; sorry. Quoting the simple name causes postfix to add
> ".localdomin" to it.
> 
> I'll read the FM as Eray said, which I'd forgotten about.
> 

It seems that you disabled smtp postfix service and you are using 
dovecot as the smtp client with postfix smtpd as destination. So your 
dovecot gives user mails to your postfix and you expect that him relay out.

If postfix has not smtp service it can't rely mail out since it has, 
with TURN smtp command, change from smtpd server to smtp client to 
connect to externals smtpd server IMHO. I think this is the reason 
because you outgoing mail gets inbound mail, because postfix can't act 
as smtp client and only server one.

However without dovecot config info and master.cf file I can't confirm that.


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3145 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-18 11:35     ` Javier Martinez
@ 2025-07-18 14:50       ` Peter Humphrey
  2025-07-18 21:13         ` Javier Martinez
  0 siblings, 1 reply; 17+ messages in thread
From: Peter Humphrey @ 2025-07-18 14:50 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1701 bytes --]

On Friday, 18 July 2025 12:35:44 British Summer Time Javier Martinez wrote:
> El 18/7/25 a las 12:34, Peter Humphrey escribió:
> 
> > On Friday, 18 July 2025 07:49:13 British Summer Time Arve Barsnes wrote:
> > 
> > --->8
> > 
> > 
> >> The mail thing is very confusing, but here is some main.cf settings on
> >> my machine that receives mail from the other machines on the LAN:
> >>
> >>
> >>
> >> inet_interfaces = $myhostname, localhost
> >> mydestination = $myhostname, localhost.$mydomain, localhost, <my local
> >> hostname> <- the simple name, not the hostname.lan that I've set in
> >> 'myhostname'
> >> mynetworks = 192.168.0.0/24, 127.0.0.0/8
> >>
> >>
> >>
> >> Hope that helps,
> >> Arve
> > 
> > 
> > Not quite, Arve; sorry. Quoting the simple name causes postfix to add
> > ".localdomin" to it.
> > 
> > I'll read the FM as Eray said, which I'd forgotten about.
> > 
> 
> 
> It seems that you disabled smtp postfix service and you are using 
> dovecot as the smtp client with postfix smtpd as destination. So your 
> dovecot gives user mails to your postfix and you expect that him relay out.
> 
> If postfix has not smtp service it can't rely mail out since it has, 
> with TURN smtp command, change from smtpd server to smtp client to 
> connect to externals smtpd server IMHO. I think this is the reason 
> because you outgoing mail gets inbound mail, because postfix can't act 
> as smtp client and only server one.
> 
> However without dovecot config info and master.cf file I can't confirm
> that.
 
I've attached my master.cf. The only settings I've made in dovecot.conf are:

protocols = imap
listen = *

-- 
Regards,
Peter.

[-- Attachment #2: master.my --]
[-- Type: text/plain, Size: 1671 bytes --]

smtp      inet  n       -       n       -       -       smtpd
pickup    unix  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      unix  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       -       trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
        -o syslog_name=${multi_instance_name?{$multi_instance_name}:{postfix}}/$service_name
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache
postlog   unix-dgram n  -       n       -       1       postlogd

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-18 14:50       ` Peter Humphrey
@ 2025-07-18 21:13         ` Javier Martinez
  2025-07-21 12:41           ` Fwd: " Javier Martinez
  2025-07-23 10:41           ` Peter Humphrey
  0 siblings, 2 replies; 17+ messages in thread
From: Javier Martinez @ 2025-07-18 21:13 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 1792 bytes --]


Can you test using the submission service?

El 18/7/25 a las 16:50, Peter Humphrey escribió:
> On Friday, 18 July 2025 12:35:44 British Summer Time Javier Martinez wrote:
>> El 18/7/25 a las 12:34, Peter Humphrey escribió:
>>
>>> On Friday, 18 July 2025 07:49:13 British Summer Time Arve Barsnes wrote:
>>>
>>> --->8
>>>
>>>
>>>> The mail thing is very confusing, but here is some main.cf settings on
>>>> my machine that receives mail from the other machines on the LAN:
>>>>
>>>>
>>>>
>>>> inet_interfaces = $myhostname, localhost
>>>> mydestination = $myhostname, localhost.$mydomain, localhost, <my local
>>>> hostname> <- the simple name, not the hostname.lan that I've set in
>>>> 'myhostname'
>>>> mynetworks = 192.168.0.0/24, 127.0.0.0/8
>>>>
>>>>
>>>>
>>>> Hope that helps,
>>>> Arve
>>>
>>>
>>> Not quite, Arve; sorry. Quoting the simple name causes postfix to add
>>> ".localdomin" to it.
>>>
>>> I'll read the FM as Eray said, which I'd forgotten about.
>>>
>>
>>
>> It seems that you disabled smtp postfix service and you are using
>> dovecot as the smtp client with postfix smtpd as destination. So your
>> dovecot gives user mails to your postfix and you expect that him relay out.
>>
>> If postfix has not smtp service it can't rely mail out since it has,
>> with TURN smtp command, change from smtpd server to smtp client to
>> connect to externals smtpd server IMHO. I think this is the reason
>> because you outgoing mail gets inbound mail, because postfix can't act
>> as smtp client and only server one.
>>
>> However without dovecot config info and master.cf file I can't confirm
>> that.
>   
> I've attached my master.cf. The only settings I've made in dovecot.conf are:
> 
> protocols = imap
> listen = *
> 


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3145 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Fwd: [gentoo-user] Postfix config problem
  2025-07-18 21:13         ` Javier Martinez
@ 2025-07-21 12:41           ` Javier Martinez
  2025-07-21 13:40             ` Dale
  2025-07-23 10:41           ` Peter Humphrey
  1 sibling, 1 reply; 17+ messages in thread
From: Javier Martinez @ 2025-07-21 12:41 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 1895 bytes --]


 >Can you test using the submission service?

The idea behind this is that if works your trouble would be surely 
dovecot not postfix.





El 18/7/25 a las 16:50, Peter Humphrey escribió:
> On Friday, 18 July 2025 12:35:44 British Summer Time Javier Martinez wrote:
>> El 18/7/25 a las 12:34, Peter Humphrey escribió:
>>
>>> On Friday, 18 July 2025 07:49:13 British Summer Time Arve Barsnes wrote:
>>>
>>> --->8
>>>
>>>
>>>> The mail thing is very confusing, but here is some main.cf settings on
>>>> my machine that receives mail from the other machines on the LAN:
>>>>
>>>>
>>>>
>>>> inet_interfaces = $myhostname, localhost
>>>> mydestination = $myhostname, localhost.$mydomain, localhost, <my local
>>>> hostname> <- the simple name, not the hostname.lan that I've set in
>>>> 'myhostname'
>>>> mynetworks = 192.168.0.0/24, 127.0.0.0/8
>>>>
>>>>
>>>>
>>>> Hope that helps,
>>>> Arve
>>>
>>>
>>> Not quite, Arve; sorry. Quoting the simple name causes postfix to add
>>> ".localdomin" to it.
>>>
>>> I'll read the FM as Eray said, which I'd forgotten about.
>>>
>>
>>
>> It seems that you disabled smtp postfix service and you are using
>> dovecot as the smtp client with postfix smtpd as destination. So your
>> dovecot gives user mails to your postfix and you expect that him relay out.
>>
>> If postfix has not smtp service it can't rely mail out since it has,
>> with TURN smtp command, change from smtpd server to smtp client to
>> connect to externals smtpd server IMHO. I think this is the reason
>> because you outgoing mail gets inbound mail, because postfix can't act
>> as smtp client and only server one.
>>
>> However without dovecot config info and master.cf file I can't confirm
>> that.
>   
> I've attached my master.cf. The only settings I've made in dovecot.conf are:
> 
> protocols = imap
> listen = *
> 


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3147 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Fwd: [gentoo-user] Postfix config problem
  2025-07-21 12:41           ` Fwd: " Javier Martinez
@ 2025-07-21 13:40             ` Dale
  2025-07-21 13:56               ` Javier Martinez
  0 siblings, 1 reply; 17+ messages in thread
From: Dale @ 2025-07-21 13:40 UTC (permalink / raw
  To: gentoo-user

Javier Martinez wrote:
>
> >Can you test using the submission service?
>
> The idea behind this is that if works your trouble would be surely
> dovecot not postfix.
>
>

This gave me a idea.  There was a news item about config changes to
Dovecot just the other day.  I saw it this weekend when I did my
updates.  Basics from memory, old config no longer works.  Since I don't
have Dovecot running yet, I read the news item but didn't take any
action.  I think it said to backup old config and then transfer old
settings to some new way with new config files.  Sounds like there is
some major changes.  One reason I'm nervous about setting up my own
email system.  :/  I like my hair.  LOL

Could this be the problem?  Did the news item get missed? 

Dale

:-)  :-) 


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Fwd: [gentoo-user] Postfix config problem
  2025-07-21 13:40             ` Dale
@ 2025-07-21 13:56               ` Javier Martinez
  2025-07-23  8:14                 ` Dale
  0 siblings, 1 reply; 17+ messages in thread
From: Javier Martinez @ 2025-07-21 13:56 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 1072 bytes --]

El 21/7/25 a las 15:40, Dale escribió:
> Javier Martinez wrote:
>>
>>> Can you test using the submission service?
>>
>> The idea behind this is that if works your trouble would be surely
>> dovecot not postfix.
>>
>>
> 
> This gave me a idea.  There was a news item about config changes to
> Dovecot just the other day.  I saw it this weekend when I did my
> updates.  Basics from memory, old config no longer works.  Since I don't
> have Dovecot running yet, I read the news item but didn't take any
> action.  I think it said to backup old config and then transfer old
> settings to some new way with new config files.  Sounds like there is
> some major changes.  One reason I'm nervous about setting up my own
> email system.  :/  I like my hair.  LOL
> 
> Could this be the problem?  Did the news item get missed?
> 
> Dale
> 
> :-)  :-)
> 

I don't like delegate postfix "that could do nice" in third party 
systems. Let postfix send and receive and let dovecot play just with 
mail boxes.

It could be also a DNS trouble.

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3145 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Fwd: [gentoo-user] Postfix config problem
  2025-07-21 13:56               ` Javier Martinez
@ 2025-07-23  8:14                 ` Dale
  2025-07-23 14:26                   ` Javier Martinez
  0 siblings, 1 reply; 17+ messages in thread
From: Dale @ 2025-07-23  8:14 UTC (permalink / raw
  To: gentoo-user

Javier Martinez wrote:
> El 21/7/25 a las 15:40, Dale escribió:
>> Javier Martinez wrote:
>>>
>>>> Can you test using the submission service?
>>>
>>> The idea behind this is that if works your trouble would be surely
>>> dovecot not postfix.
>>>
>>>
>>
>> This gave me a idea.  There was a news item about config changes to
>> Dovecot just the other day.  I saw it this weekend when I did my
>> updates.  Basics from memory, old config no longer works.  Since I don't
>> have Dovecot running yet, I read the news item but didn't take any
>> action.  I think it said to backup old config and then transfer old
>> settings to some new way with new config files.  Sounds like there is
>> some major changes.  One reason I'm nervous about setting up my own
>> email system.  :/  I like my hair.  LOL
>>
>> Could this be the problem?  Did the news item get missed?
>>
>> Dale
>>
>> :-)  :-)
>>
>
> I don't like delegate postfix "that could do nice" in third party
> systems. Let postfix send and receive and let dovecot play just with
> mail boxes.
>
> It could be also a DNS trouble.


In all honesty, I know little about email systems like Dovecot and
such.  It just hit me that given the problem, maybe there was a problem
related to the recent changes in Dovecot files.  I've been known to miss
a news item in the past myself.  I'm sure others have too.  I thought it
worth mentioning just in case it was missed this time as well.  From
what I recall, it sounds like the changes would break things. 

If that is not the case here, well, it was a thought.  ;-) 

Dale

:-)  :-)


^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-18 21:13         ` Javier Martinez
  2025-07-21 12:41           ` Fwd: " Javier Martinez
@ 2025-07-23 10:41           ` Peter Humphrey
  2025-07-23 10:57             ` Javier Martinez
  1 sibling, 1 reply; 17+ messages in thread
From: Peter Humphrey @ 2025-07-23 10:41 UTC (permalink / raw
  To: gentoo-user

On Friday, 18 July 2025 22:13:09 British Summer Time Javier Martinez wrote:
> Can you test using the submission service?

Remind me of the command to do that?

-- 
Regards,
Peter.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-23 10:41           ` Peter Humphrey
@ 2025-07-23 10:57             ` Javier Martinez
  2025-07-23 14:36               ` Peter Humphrey
  0 siblings, 1 reply; 17+ messages in thread
From: Javier Martinez @ 2025-07-23 10:57 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 258 bytes --]

El 23/7/25 a las 12:41, Peter Humphrey escribió:
> On Friday, 18 July 2025 22:13:09 British Summer Time Javier Martinez wrote:
>> Can you test using the submission service?
> 
> Remind me of the command to do that?
> 

"nano /etc/postfix/master.cf"

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3145 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: Fwd: [gentoo-user] Postfix config problem
  2025-07-23  8:14                 ` Dale
@ 2025-07-23 14:26                   ` Javier Martinez
  0 siblings, 0 replies; 17+ messages in thread
From: Javier Martinez @ 2025-07-23 14:26 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 3684 bytes --]

El 23/7/25 a las 10:14, Dale escribió:
> Javier Martinez wrote:
>> El 21/7/25 a las 15:40, Dale escribió:
>>> Javier Martinez wrote:
>>>>
>>>>> Can you test using the submission service?
>>>>
>>>> The idea behind this is that if works your trouble would be surely
>>>> dovecot not postfix.
>>>>
>>>>
>>>
>>> This gave me a idea.  There was a news item about config changes to
>>> Dovecot just the other day.  I saw it this weekend when I did my
>>> updates.  Basics from memory, old config no longer works.  Since I don't
>>> have Dovecot running yet, I read the news item but didn't take any
>>> action.  I think it said to backup old config and then transfer old
>>> settings to some new way with new config files.  Sounds like there is
>>> some major changes.  One reason I'm nervous about setting up my own
>>> email system.  :/  I like my hair.  LOL
>>>
>>> Could this be the problem?  Did the news item get missed?
>>>
>>> Dale
>>>
>>> :-)  :-)
>>>
>>
>> I don't like delegate postfix "that could do nice" in third party
>> systems. Let postfix send and receive and let dovecot play just with
>> mail boxes.
>>
>> It could be also a DNS trouble.
> 
> 
> In all honesty, I know little about email systems like Dovecot and
> such.  It just hit me that given the problem, maybe there was a problem
> related to the recent changes in Dovecot files.  I've been known to miss
> a news item in the past myself.  I'm sure others have too.  I thought it
> worth mentioning just in case it was missed this time as well.  From
> what I recall, it sounds like the changes would break things.
> 
> If that is not the case here, well, it was a thought.  ;-)
> 
> Dale
> 
> :-)  :-)
> 
Which I expect is that I will not have to send more mails to abuse mail 
address from ip providers  because I got receive phising/spam. Last year 
I had to sent several hundred of them....

Prior mounting one mail server it's needed to read a bit about postfix, 
the smtp conversation restrictions are critical and is needed to master 
them, a lot of them are DNS related too so, is required also master DNS 
service. The restrictions  are  like a firewall.

Also it's needed that the mail admin is able to make connections to his 
smtpd port through openssl for example by submission service (I suppose 
that at least got implemented starttls and sasl forbidding clear text AUTH).

Also one mail admin can't mount smtpd servers through "kitchen receipts"

At least the EHLO, MAIL FROM, RCPT TO, DATA, AUTH, STARTTLS, and some 
other that are secure relevant as VRFY, ETRN etc sould be mastered. 
prior  putting the server in contact to internet and the mail admin have 
to test it locally, for example, that AUTH command is required to be 
wrapped under TLS and that no one can send mails without AUTH. Also mail 
admin should avoid the mail from forgery.

The master.cf sent indicates that no services got chrooted and priv 
dropped which is a very bad idea.

Almost all services can (and should) be chrooted and almost all can drop 
privileges (and should). The first thing I usually do is delete 
permit_mynetworks (and probably I'm not alone in this) from smtp 
restrictions.

The reality about the problem is that we can't know what's happened 
because we have not data to investigate further, no tests to mail server 
to see what's happened, with server codes after smtpd conversation, no 
logs, also if mail admin doesn't know how dovecot and postfix interacts 
between them cant debug it and by this reason we can't know if it's a 
dovecot trouble, a DNS trouble or one postfix trouble.....


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3145 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-23 10:57             ` Javier Martinez
@ 2025-07-23 14:36               ` Peter Humphrey
  2025-07-23 14:42                 ` Javier Martinez
  0 siblings, 1 reply; 17+ messages in thread
From: Peter Humphrey @ 2025-07-23 14:36 UTC (permalink / raw
  To: gentoo-user

On Wednesday, 23 July 2025 11:57:56 British Summer Time Javier Martinez wrote:
> El 23/7/25 a las 12:41, Peter Humphrey escribió:
> 
> > On Friday, 18 July 2025 22:13:09 British Summer Time Javier Martinez
> > wrote:
> 
> >> Can you test using the submission service?
> > 
> > 
> > Remind me of the command to do that?
> > 
> 
> 
> "nano /etc/postfix/master.cf"

That was no help, so I tried:

mail –s "Test Email" prh@localhost
Cc: 
Subject: Test
Test
^D

I got "Cannot parse address `–s': Malformed email address"

...so I tried with my address here: peter@prh.myzen.co.uk and got the same 
error. I even specified /usr/bin/mail -s ... and got the same again.

Perhaps Dale is right, and it's just not worth the trouble to run a LAN mail 
system.

-- 
Regards,
Peter.





^ permalink raw reply	[flat|nested] 17+ messages in thread

* Re: [gentoo-user] Postfix config problem
  2025-07-23 14:36               ` Peter Humphrey
@ 2025-07-23 14:42                 ` Javier Martinez
  0 siblings, 0 replies; 17+ messages in thread
From: Javier Martinez @ 2025-07-23 14:42 UTC (permalink / raw
  To: gentoo-user


[-- Attachment #1.1.1: Type: text/plain, Size: 1229 bytes --]

Probably you are using strict rfc envelopes. You must test your mail 
server using openssl command directly (I expect that you use TLS AUTH at 
least), do the full SMTP conversation with your server, EHLO, STARTTLS, 
AUTH,  MAIL FROM, RCPT TO, DATA. All of them and check status codes. 
this interaction will give you info useful to find the trouble.

El 23/7/25 a las 16:36, Peter Humphrey escribió:
> On Wednesday, 23 July 2025 11:57:56 British Summer Time Javier Martinez wrote:
>> El 23/7/25 a las 12:41, Peter Humphrey escribió:
>>
>>> On Friday, 18 July 2025 22:13:09 British Summer Time Javier Martinez
>>> wrote:
>>
>>>> Can you test using the submission service?
>>>
>>>
>>> Remind me of the command to do that?
>>>
>>
>>
>> "nano /etc/postfix/master.cf"
> 
> That was no help, so I tried:
> 
> mail –s "Test Email" prh@localhost
> Cc:
> Subject: Test
> Test
> ^D
> 
> I got "Cannot parse address `–s': Malformed email address"
> 
> ...so I tried with my address here: peter@prh.myzen.co.uk and got the same
> error. I even specified /usr/bin/mail -s ... and got the same again.
> 
> Perhaps Dale is right, and it's just not worth the trouble to run a LAN mail
> system.
> 


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3145 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2025-07-23 14:43 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-18  6:23 [gentoo-user] Postfix config problem Peter Humphrey
2025-07-18  6:49 ` Arve Barsnes
2025-07-18 10:34   ` Peter Humphrey
2025-07-18 11:35     ` Javier Martinez
2025-07-18 14:50       ` Peter Humphrey
2025-07-18 21:13         ` Javier Martinez
2025-07-21 12:41           ` Fwd: " Javier Martinez
2025-07-21 13:40             ` Dale
2025-07-21 13:56               ` Javier Martinez
2025-07-23  8:14                 ` Dale
2025-07-23 14:26                   ` Javier Martinez
2025-07-23 10:41           ` Peter Humphrey
2025-07-23 10:57             ` Javier Martinez
2025-07-23 14:36               ` Peter Humphrey
2025-07-23 14:42                 ` Javier Martinez
2025-07-18  6:58 ` Eray Aslan
2025-07-18  9:55 ` Javier Martinez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox