ispCP - Board - Support
Wrong Mailsender ?! - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Development Area (/forum-1.html)
+--- Forum: General discussion (/forum-11.html)
+--- Thread: Wrong Mailsender ?! (/thread-1792.html)



Wrong Mailsender ?! - BeNe - 11-16-2007 01:19 AM

Hello out there,

i checked my mailque and what do i see there - some queued mails:
Code:
EE7415738052     1950 Thu Nov 15 10:27:36  vu2000@mail.mydomain.tld.local
(host mail.acompany.biz[217.243.XXX.XXX] said: 450 Could not resolve mail.mydomain.tld.local (in reply to MAIL FROM command))
                                         a.name@acompany.biz
And here is the mail discussion:
Code:
220 azeti-s ESMTP azeti-S ready; send us your mail, but not your spam.
EHLO mail.mydomain.tld
250-azeti-s Hi vs24XXXX.mydomain.tld [62.75.XXX.XX]
250-PIPELINING
250 8BITMIME
MAIL FROM: <vu2000@mail.mydomain.tld.local> BODY=8BITMIME
450 Could not resolve mail.mydomain.tld.local
RSET
250 OK
QUIT

Of course it does not work with "vu2000@mail.mydomain.tld.local" because of the local. The mail is generated by ispCP (Login information after add Domain).

i checked my main.cf and i looks ok. I can send/recieve Mails normaly!

Here is my postconf -n for rbtux Wink
Code:
postconf -n
alias_database = hash:/etc/aliases
append_at_myorigin = yes
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
inet_interfaces = all
local_destination_recipient_limit = 1
local_recipient_maps = unix:passwd.byname $alias_database
local_transport = local
mail_spool_directory = /var/mail
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = $myhostname, $mydomain
mydomain = mail.mydomain.tld.local
myhostname = mail.mydomain.tld
mynetworks_style = host
myorigin = $mydomain
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP send us your mail, but not your spam.
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks,                           permit_sasl_authenticated,                              reject_invalid_helo_hostname,       reject_non_fqdn_helo_hostname
smtpd_recipient_restrictions = reject_non_fqdn_sender,                         reject_unknown_sender_domain,                           reject_non_fqdn_recipient,                           reject_unknown_recipient_domain,                        permit_mynetworks,                              permit_sasl_authenticated,                           reject_invalid_hostname,                        reject_unauth_destination,                              reject_unauth_pipelining,                            check_policy_service inet:127.0.0.1:12525
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/auth
smtpd_sasl_security_options = noanonymous, noplaintext
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = reject_non_fqdn_sender,                            reject_unknown_sender_domain,                           permit_mynetworks,          permit_sasl_authenticated
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/postfix.cert.pem
smtpd_tls_key_file = /etc/postfix/postfix.key.pem
smtpd_tls_loglevel = 2
smtpd_tls_received_header = yes
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/ispcp/transport
virtual_alias_maps = hash:/etc/postfix/ispcp/aliases
virtual_gid_maps = static:8
virtual_mailbox_base = /var/mail/virtual
virtual_mailbox_domains = hash:/etc/postfix/ispcp/domains
virtual_mailbox_limit = 0
virtual_mailbox_maps = hash:/etc/postfix/ispcp/mailboxes
virtual_minimum_uid = 1000
virtual_transport = dovecot
virtual_uid_maps = static:1000

Can someone confirm that Problem ?
Looks like a ispCP Bug... (trunk 903)

Greez BeNe


RE: Wrong Mailsender ?! - rbtux - 11-16-2007 01:32 AM

set mydomain = $myhostname


RE: Wrong Mailsender ?! - BeNe - 11-16-2007 01:55 AM

Yes, of course i can change it!
But per default via ispCP it is set to domain.tld.local

Code:
myhostname = {MTA_HOSTNAME}
mydomain   = {MTA_LOCAL_DOMAIN}
myorigin   = $myhostname

Do i really need this ".local" ?

Greez BeNe


RE: Wrong Mailsender ?! - rbtux - 11-16-2007 02:01 AM

i dont know why this is set... this must be a valid domain! (And of course a domain that isn't listed in virtual/relay)


RE: Wrong Mailsender ?! - macbishop - 11-16-2007 03:54 AM

rbtux Wrote:set mydomain = $myhostname

trunk 903

/trunk/configs/postfix/main.cf

Code:
myhostname = {MTA_HOSTNAME}
mydomain   = {MTA_LOCAL_DOMAIN}
myorigin   = $myhostname

myorigin = $myhostname ????


RE: Wrong Mailsender ?! - rbtux - 11-16-2007 04:02 AM

best you set myhostname to a vild domain (or subdomain of course) you like to user for the mailsystem (mail.yourdomain.tld would be a good choice)

and then set mydomain and myorigin to $myhostname...