postfix relay

Issues related to applications and software problems
Post Reply
westconn
Posts: 10
Joined: 2011/02/21 08:00:57

postfix relay

Post by westconn » 2018/12/03 20:34:16

i have been trying to get the relay to work if i send out emails, but so far have managed to break it now i get no incoming emails at all, though that was working before, i still want to get the relay to work, so some users can send emails outside of the domain, but it is more important to get incoming emails working first

at one stage i was able to connect, but i don't think it was authenticating

Code: Select all

> postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5
html_directory = no
inet_protocols = all
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost
mydomain = x.com
myhostname = mail.x.com
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
readme_directory = /usr/share/doc/postfix-2.10.1/README_FILES
relay_domains = *
sample_directory = /usr/share/doc/postfix-2.10.1/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_relay_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_path = /var/run/dovecot/auth-client
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = check_sender_access hash:/etc/postfix/access, reject
smtpd_tls_security_level = none
unknown_local_recipient_reject_code = 550
virtual_gid_maps = static:2222
virtual_mailbox_base = /var/vmail
virtual_mailbox_domains = hash:/etc/postfix/vmail_domains
virtual_mailbox_maps = hash:/etc/postfix/vmail_mailbox
virtual_minimum_uid = 2222
virtual_transport = virtual
virtual_uid_maps = static:2222
postconf: warning: /etc/postfix/master.cf: unused parameter: contnet_filter=spamassassin
i changed the domain name
i am sure you probably need more information, please advise what to post

the other issue with the relay is the server connection has port 25 blocked outgoing, so i need emails not to my domain to relay on a different port 587? if i ever get it working

northpoint
Posts: 107
Joined: 2016/05/23 11:57:12

Re: postfix relay

Post by northpoint » 2018/12/04 17:39:01

Im no expert but I did find this link helpful when setting up postfix to forward emails to my business account. I used it to setup daily notices for maintenance on servers.

https://devops.profitbricks.com/tutoria ... on-ubuntu/
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

westconn
Posts: 10
Joined: 2011/02/21 08:00:57

Re: postfix relay

Post by westconn » 2018/12/04 20:22:20

i seem to have at least got the mail back to where it was before, that is i can at least receive incoming emails again, just have to contact those who were bounced to resend

seems like somehow i had copied the smptd recipient restriction to the sender restrictions, i have no idea how i managed that
i will look at the relaying again when i get caught up, from the time i spent on getting this far

northpoint
Posts: 107
Joined: 2016/05/23 11:57:12

Re: postfix relay

Post by northpoint » 2018/12/04 20:57:50

Hope it helped.
Ryzen x1800 * Asus x370 Pro * CentOS 7.4 64bit / Icewarp /

Post Reply