Mail Services Newbie - Selective Relaying?
Hello everyone. I'm fairly new to OS X Mail Services, so please forgive my naiveté when asking this question. I'm a CS professor at a small college, and we recently purchased and installed an Xserve for use by our department's students. Everything is working fine with the exception of mail services. The problem is that, for local emails (@ourschool.edu), I need to relay through our (separate) SMTP server. This works fine when sending mail to a local address. However, when sending email to an outside address (another other than @ourschool.edu), I do not need to relay the messages through our SMTP server.
Is there a way to configure Mail services to "selectively" relay messages based on their destination domain? Basically, if the destination is @ourschool.edu, I want to relay it. Otherwise, just send it to the destination directly.
I know that one solution would be to open up our SMTP server for total/complete relaying from our Xserve, but I was wondering if I could accomplish the same thing without the need for relaying everything.
Thanks!
You cannot do this via the GUI, but if you do not mind using Terminal, this can be achieved by using transport maps.
There are several ways of doing this, but roughly it goes like this:
Make a copy of /etc/postfix/main.cf first.
Edit /etc/postfix/main.cf
comment out your relayhost setting if you have already set it:
#relayhost = mysmtpserver.mydomain.com
add:
transport_maps = hash:/etc/postfix/transport_maps
create a file:
/etc/postfix/transport_maps
with these contents:
ourschool.edu smtp: mysmtpserver.mydomain.com
otherdomain.edu smtp: othersmtpserver.mydomain.com
save it and issue:
sudo postmap /etc/postfix/transport_maps
sudo postfix reload
For more info, look at the transport maps examples here: http://www.postfix.org/STANDARDCONFIGURATIONREADME.html
HTH,
Alex
P.S. The forum software mangles above sample a bit, so make sure you check the link. mysmtpserver.mydomain.com should be in square brackets and there is a * before the last colon
Similar Messages
-
iPhone 4S. My e-mail service provider is Embarq. I am receiving e-mails, but I cannot SEND/REPLY to e-mails. I get message that recipient was rejected by the server because it does not allow relaying. Any suggestions.
Problem has been solved thanks to a posting by AmberDrivingKendal on 5/15/11. More Like This section was a great help.
-
I am trying to select Adobe e-mail service in the "preferences", but am not getting an email with verification code that allows me to continue. Anyone else with this problem? Probably need to contact Adobe directly, but so far not find that option.
I hope you receive some replies as I have a very similiar situation. I wish I could help but obviously I cannot.
\Good luck! -
Mail services 10.4.10 refuses to work.
Hello,
I'm a newbie to OS X, so please help - I need to get
a local eMail system going here in the office, and it
just doesn't want to work.
I've been to every site imagineable searching for answers
on how to configure OS X Mail Services, but it still
doesn't work.
DNS:
- I have DNS running on this server,
- I've checked "This machine is a mail server for the zone" for the server,
- I've added aliases "pop3", "smtp", and "mail" for the server.
User accounts:
- Open Directory seems to be running, although "start service" is greyed-out,
- this is an "Open Directory Master",
- I've checked "Enable Secure Sockets Layer" on the Protocols tab,
- I've checked all the encryption options in the Policy->Security tab.
Workgroup Manager:
I followed some tutorial to create the directory "/LDAPv3/127.0.0.1",
and added the user "dspratling" to it, which DOES show up in the
Mail Services automagically.
I'm only looking to create Mail Users ("dspratling" for starters),
but trying everything, I created a Home directory for this user,
since I was getting error messages in the LDAP log saying: "... object
class 'posixAccount' requires attribute 'homeDirectory'.
- I have checked the "Mail: Enabled" under the Mail tab,
- I checked "POP only" under Mail Access,
- I put "mail.mme.lan" for the Mail Server.
- Under the Advanced tab, I have User Password Type selected as "Open Directory".
Error Messages appearing in the logs:
Other error messages in LDAP log include:
"slapd[59]: SASL [conn=3740] Failure: GSSAPI Error: Miscellaneous failure (No principal in keytab matches desired name)"
kdc Log has:
"xserv.mme.lan krb5kdc[296](info): AS_REQ (7 etypes {18 17 16 23 1 3 2}) 10.0.0.9: ISSUE authtime 1195081950, etypes {rep=16 tkt=16 ses=16}, [email protected] for krbtgt/[email protected]"
kadmin Log has:
"xserv.mme.lan kadmin.local[22270](info): No dictionary file specified, continuing without one."
however, good news in the "Password Service Server Log":
"RSAVALIDATE: success"
and
"AUTH2: {0x000000..., diradmin} CRAM-MD5 authentication succeeded."
Now, in the Mail logs...
Mail Access log has:
"xserv master[23575]: empty option value on line 19 of configuration file"
and
"xserv master[23575]: exiting"
POP log has:
"xserv pop3[23444]: AOD: getting mail attribute for user: dspratling
"xserv pop3[23444]: AOD: mail enabled"
"xserv pop3[23444]: AOD: mbrcheck_servicemembership with accessallservices"
"xserv pop3[23444]: AOD: checkServiceACL: Mail SACL not enabled"
From the Client-side (MacMini 10.4.10), it reports "The server "mail.mme.lan" refused to allow a connection on port 995."
All other network-based services work fine with the server, even in our
heterogenous PC network - only the Mail Service is not working.
Please - ANY SUGGESTIONS WOULD BE APPRECIATED
Thanks,
DylanBrett -
Thanks for the suggestions. This is not an internet-facing
server, however. Strictly intra-office eMail is all I'm after
for now. The DNS works well, resolving "mail.mme.lan" to the
correct IP (via the CL "host" command), and the CL "named-checkzone"
command returned OK as well. I haven't changed the DNS for weeks,
so I'm quite sure every cache has been refreshed.
I'm going with "Plan B", until this can be resolved ...
And I know it's pure evil, but: "Parallels -> Win2K -> mailEnable"
I got it configured and working in minutes. (Parallels was already
running on this server, serving printers, and mailEnable was free
Would still rather not depend on MS.
Thanks,
Dylan -
SAP J2EE engine for configuring Java mail Service.
Hi
I am experiencing following exception when trying to use JAVA mail API.
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 554 <email@ddress>: Recipient address rejected:
Relay access denied
email address above is valid..
I have to use SAP J2EE engine for configuring Java mail Service.
But is does not hav any such access permissions to check....!!Relay access denied
To send mails from SAP system through the mail server which you have configured, SAP server should be permitted to relay through the mailserver. Then only you will be able to send mail to external email address. Otherwise, you will get the above message.
You must contact the mail server administrator and ask him to add the ip of SAP server into the allowed relay list.
If you are using MS exchange server as your mail server and if you have administrative access to the Exchange box, you can do it yourself by following the below steps:
1.Verify that your Exchange computer is not an open mail relay. To do this, follow these steps:
a. Click Start, point to Programs, point to Microsoft Exchange, and then click System Manager.
b. In Exchange System Manager, expand the following object:
Servers\Your_Exchange_Server_Name\Protocols\SMTP
c. Right-click the virtual SMTP server where you want to prevent mail relay, and then click Properties.
d. Click the Access tab, and then click Relay.
e. By default, open relay is blocked. The default settings are as follows:
u2022 The Only the list below check box is selected.
u2022 The Allow all computers which successfully authenticate to relay, regardless of the list above check box is selected.
f. If you must permit a single computer, a group of computers, or a domain to relay through the server, click Add. In the Computer dialog box, click the appropriate selection for the computers you want to relay through the server. Then, type the required information.
Note Enabling access by IP address or by domain name is helpful for users who do not authenticate with the Exchange computer.
g. In the Relay Restrictions dialog box, click OK.
h. Click Apply, and then click OK in the Default SMTP Virtual Server Properties dialog box.
hope this helps you out...
Cheers,
Jazz -
Yosemite Server Mail and Google Domain Relay
I want to simply use the server to send automated emails from scripts. I have server installed. Over the course of two days I've have followed several posts:
http://www.anujgakhar.com/2011/12/09/using-macosx-lion-command-line-mail-with-gm ail-as-smtp/
http://blog.anupamsg.me/2012/02/14/enabling-postfix-for-outbound-relay-via-gmail -on-os-x-lion-11/
And the updated Yosemite version here:
http://blog.anupamsg.me/2013/12/22/enabling-postfix-on-osx-as-a-relay-revisited/
Yosemite Server configuration
http://krypted.com/mac-security/configure-the-os-x-yosemite-server-mail-service/
I've gotten no where. In my last attempt all sasl errors and no mech connections had stopped but mail did not appear to go anywhere. No trace. I stumbled across a post that said ssl connections from Mac OS X Yosemite are broken and just don't work.
Now the real rub. I have gotten the same thing working with Linux in 5 minutes following this post:
https://rtcamp.com/tutorials/linux/ubuntu-postfix-gmail-smtp/
Then within an hour my crontab and scripts were written, debugged, and blissfully sending email.
I would rather run this from my Mac server. I understand that this may become an in-depth discussion/debug session (remember the old sendmail.cf day?!) and would greatly appreciate someone's mentoring here.
-TimHi,
maybe it helps or not, I solve a other performance problem which is more related to the mailbox speed but this error on client side is gone afterwards:
In Yosemite there is still also a problem with the automatic settings detection in Mail.
That means that the application try's to find a working authentication mechanism in combination with different ports and encryption.
So far so good, this feature would be okay but the application never stops to do that. So we are shortly connected but the connection becomes invalid again.
This leads to performance issues and the application becomes very slow!
If you refer your client log file maybe you can see some "Failed to start the SASL connection" issues (coming from Mail.app).
In case that you are running a OS X Server which is used by Mail you will see in /var/log/mail* /Library/Logs/mail* various login failures. In case that you have enabled the Adaptive Firewall it can be happen that your IP is blocked for 15 minutes.
Of course this must not be a issue for everyone I believe it strongly depends on your email server / provider which auth. stuff is supported or enabled.
To solve it:
1.) Open the Mail Preferences
2.) Goto "Accounts" and select your Provider/Account
3.) Klick Enhanced (the last right tab)
4.) Disable the automatic settings detection (first checkbox)
5.) In case you didn't enable "MailDrop"
This works in Mail 8.1 on Yosemite 10.10.1 -
Mail Services connection times out after 10.5.8 - 10.6.4 upgrade
I have been running a mail server on my macosxserver02.binghamton.edu (128.226.xx.x) for Podcast Producer email notifications only. The mail service has been running fine until I recently upgraded the server to Apple's latest server software: Snow Leopard Server (10.6.4).
After the upgrade I'm no longer able to receive mail to the mail server from outside it's domain (macosxserver02.binghamton.edu). I can send and receive mail locally from within that domain. I can send mail outside of the domain without any trouble to my personal email account [email protected], but not my work account: [email protected]. If I try to send from outside the domain -- say with my Binghamton Univ account -- the mail bounces back with this message:
Delivery to the following recipient has been delayed:
[email protected]
Message will be retried for 2 more day(s)
Technical details of temporary failure:
The recipient server did not accept our requests to connect. Learn more at http://mail.google.com/support/bin/answer.py?answer=7720
[macosxserver02.binghamton.edu (1): Connection timed out]
---- Original message -----
Received: by 10.224.102.202 with SMTP id h10mr6012071qao.49.1277903965341;
Wed, 30 Jun 2010 06:19:25 -0700 (PDT)
Return-Path: <[email protected]>
Received: from [128.226.62.7] ([128.226.62.7])
by mx.google.com with ESMTPS id v20sm41975621qce.46.2010.06.30.06.19.24
(version=TLSv1/SSLv3 cipher=RC4-MD5);
Wed, 30 Jun 2010 06:19:24 -0700 (PDT)
From: Cheryl Tarbox <[email protected]>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Subject: another attempt
Date: Wed, 30 Jun 2010 09:19:22 -0400
Message-Id: <[email protected]>
To: [email protected],
[email protected]
Mime-Version: 1.0 (Apple Message framework v1078)
X-Mailer: Apple Mail (2.1078)
One thing to note about the .binghamton.edu domain is that we recently switched to Google Mail and .binghamton.edu is our branded domain within google.com.
DNS is managed on another server. I had an MX record added to my server this morning.
I have these ports open on my firewall: 143, 993, 25, 587 (POP is not enabled)
In ServerAdmin>Mail>Settings>Relay 'Accept SMTP relays only from these hosts and networks' is checked with
127.0.0.0/8
128.226.62.0/26 (my local subnet)
In ServerAdmin>Mail>Settings>Filters Junk Mail and Virus filtering is not enabled, so greylisting should not be a problem. I did confirm this line in main.cf: smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reje ct_unauth_destination permit
10MB quota is set, Mailing Lists not enabled, Logging set at Information
In ServerAdmin>Mail>Settings>Advanced>Security I am not using SSL. I do have a valid certificate that I would like to use after I get this back up and running.
In ServerAdmin>Mail>Settings>Hosting 'Include server's domain as local host alias' is checked with
localhost
binghamton.edu
Virtual hosting is not enabled.
Here is the output of: postconf -n:
macosxserver02:~ academic$ postconf -n
2bounce_notice_recipient = postmaster
access_map_reject_code = 554
address_verify_default_transport = $default_transport
address_verify_local_transport = $local_transport
address_verify_map =
address_verify_negative_cache = yes
address_verify_negative_expire_time = 3d
address_verify_negative_refresh_time = 3h
address_verify_poll_count = 3
address_verify_poll_delay = 3s
address_verify_positive_expire_time = 31d
address_verify_positive_refresh_time = 7d
address_verify_relay_transport = $relay_transport
address_verify_relayhost = $relayhost
address_verify_sender = $double_bounce_sender
address_verify_sender_dependent_relayhost_maps = $sender_dependent_relayhost_maps
address_verify_service_name = verify
address_verify_transport_maps = $transport_maps
address_verify_virtual_transport = $virtual_transport
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
allow_mail_to_commands = alias, forward
allow_mail_to_files = alias, forward
always_bcc =
anvil_rate_time_unit = 60s
anvil_status_update_time = 600s
application_event_drain_time = 100s
authorized_flush_users = static:anyone
authorized_mailq_users = static:anyone
authorized_submit_users = static:anyone
backwards_bounce_logfile_compatibility = yes
berkeley_db_create_buffer_size = 16777216
berkeley_db_read_buffer_size = 131072
best_mx_transport =
body_checks_size_limit = 51200
bounce_notice_recipient = postmaster
bounce_queue_lifetime = 5d
bounce_service_name = bounce
bounce_size_limit = 50000
bounce_template_file =
canonical_classes = envelope_sender, envelope_recipient, header_sender, header_recipient
check_for_od_forward = yes
cleanup_service_name = cleanup
command_directory = /usr/sbin
command_execution_directory =
command_expansion_filter = 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
command_time_limit = 1000s
config_directory = /etc/postfix
connection_cache_protocol_timeout = 5s
connection_cache_service_name = scache
connection_cache_status_update_time = 600s
connection_cache_ttl_limit = 2s
content_filter =
cyrus_sasl_config_path =
daemon_directory = /usr/libexec/postfix
daemon_timeout = 18000s
data_directory = /var/lib/postfix
debug_peer_level = 2
debug_peer_list =
default_database_type = hash
default_delivery_slot_cost = 5
default_delivery_slot_discount = 50
default_delivery_slot_loan = 3
default_destination_concurrency_failed_cohort_limit = 1
default_destination_concurrency_limit = 20
default_destination_concurrency_negative_feedback = 1
default_destination_concurrency_positive_feedback = 1
default_destination_rate_delay = 0s
default_destination_recipient_limit = 50
default_extra_recipient_limit = 1000
default_minimum_delivery_slots = 3
default_privs = nobody
default_process_limit = 100
default_rbl_reply = $rbl_code Service unavailable; $rbl_class [$rbl_what] blocked using $rbl_domain${rbl_reason?; $rbl_reason}
default_recipient_limit = 20000
default_recipient_refill_delay = 5s
default_recipient_refill_limit = 100
default_transport = smtp
default_verp_delimiters = +=
defer_code = 450
defer_service_name = defer
defer_transports =
delay_logging_resolution_limit = 2
delay_notice_recipient = postmaster
delay_warning_time = 0h
deliver_lock_attempts = 20
deliver_lock_delay = 1s
destination_concurrency_feedback_debug = no
detect_8bit_encoding_header = yes
dont_remove = 0
double_bounce_sender = double-bounce
duplicate_filter_limit = 1000
empty_address_recipient = MAILER-DAEMON
empty_address_relayhost_maps_lookup_key =
enable_original_recipient = yes
enable_server_options = yes
error_notice_recipient = postmaster
error_service_name = error
execution_directory_expansion_filter = 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
export_environment = TZ MAIL_CONFIG LANG
fallback_transport =
fallback_transport_maps =
fast_flush_domains = $relay_domains
fast_flush_purge_time = 7d
fast_flush_refresh_time = 12h
fault_injection_code = 0
flush_service_name = flush
fork_attempts = 5
fork_delay = 1s
forward_expansion_filter = 1234567890!@%-_=+:,./abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ
forward_path = $home/.forward${recipient_delimiter}${extension}, $home/.forward
frozen_delivered_to = yes
hash_queue_depth = 1
hash_queue_names = deferred,defer
header_address_token_limit = 10240
header_checks =
header_size_limit = 102400
hopcount_limit = 50
html_directory = no
import_environment = MAIL_CONFIG MAIL_DEBUG MAIL_LOGTAG TZ XAUTHORITY DISPLAY LANG=C
in_flow_delay = 1s
inet_interfaces = all
inet_protocols = ipv4
initial_destination_concurrency = 5
internal_mail_filter_classes =
invalid_hostname_reject_code = 501
ipc_idle = 5s
ipc_timeout = 3600s
ipc_ttl = 1000s
line_length_limit = 2048
lmtp_bind_address =
lmtp_bind_address6 =
lmtp_body_checks =
lmtp_cname_overrides_servername = no
lmtp_connect_timeout = 0s
lmtp_connection_cache_destinations =
lmtp_connection_cache_on_demand = yes
lmtp_connection_cache_time_limit = 2s
lmtp_connection_reuse_time_limit = 300s
lmtp_data_done_timeout = 600s
lmtp_data_init_timeout = 120s
lmtp_data_xfer_timeout = 180s
lmtp_defer_if_no_mx_address_found = no
lmtp_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
lmtp_destination_concurrency_limit = $default_destination_concurrency_limit
lmtp_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
lmtp_destination_concurrency_positive_feedback = $default_destination_concurrency_positive_feedback
lmtp_destination_rate_delay = $default_destination_rate_delay
lmtp_destination_recipient_limit = $default_destination_recipient_limit
lmtp_discard_lhlo_keyword_address_maps =
lmtp_discard_lhlo_keywords =
lmtp_enforce_tls = no
lmtp_generic_maps =
lmtp_header_checks =
lmtp_host_lookup = dns
lmtp_initial_destination_concurrency = $initial_destination_concurrency
lmtp_lhlo_name = $myhostname
lmtp_lhlo_timeout = 300s
lmtp_line_length_limit = 990
lmtp_mail_timeout = 300s
lmtp_mime_header_checks =
lmtp_mx_address_limit = 5
lmtp_mx_session_limit = 2
lmtp_nested_header_checks =
lmtp_pix_workaround_delay_time = 10s
lmtp_pix_workaround_maps =
lmtp_pix_workaround_threshold_time = 500s
lmtp_pix_workarounds = disable_esmtp,delay_dotcrlf
lmtp_quit_timeout = 300s
lmtp_quote_rfc821_envelope = yes
lmtp_randomize_addresses = yes
lmtp_rcpt_timeout = 300s
lmtp_rset_timeout = 20s
lmtp_sasl_auth_cache_name =
lmtp_sasl_auth_cache_time = 90d
lmtp_sasl_auth_soft_bounce = yes
lmtp_sasl_mechanism_filter =
lmtp_sasl_path =
lmtp_sasl_security_options = noplaintext, noanonymous
lmtp_sasl_tls_security_options = $lmtp_sasl_security_options
lmtp_sasl_tls_verified_security_options = $lmtp_sasl_tls_security_options
lmtp_sasl_type = cyrus
lmtp_send_xforward_command = no
lmtp_sender_dependent_authentication = no
lmtp_skip_5xx_greeting = yes
lmtp_starttls_timeout = 300s
lmtp_tcp_port = 24
lmtp_tls_CAfile =
lmtp_tls_CApath =
lmtp_tls_cert_file =
lmtp_tls_dcert_file =
lmtp_tls_dkey_file = $lmtp_tls_dcert_file
lmtp_tls_enforce_peername = yes
lmtp_tls_exclude_ciphers =
lmtp_tls_fingerprint_cert_match =
lmtp_tls_fingerprint_digest = md5
lmtp_tls_key_file = $lmtp_tls_cert_file
lmtp_tls_loglevel = 0
lmtp_tls_mandatory_ciphers = medium
lmtp_tls_mandatory_exclude_ciphers =
lmtp_tls_mandatory_protocols = SSLv3, TLSv1
lmtp_tls_note_starttls_offer = no
lmtp_tls_per_site =
lmtp_tls_policy_maps =
lmtp_tls_scert_verifydepth = 9
lmtp_tls_secure_cert_match = nexthop
lmtp_tls_security_level =
lmtp_tls_session_cache_database =
lmtp_tls_session_cache_timeout = 3600s
lmtp_tls_verify_cert_match = hostname
lmtp_use_tls = no
lmtp_xforward_timeout = 300s
local_command_shell =
local_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
local_destination_concurrency_limit = 2
local_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
local_destination_concurrency_positive_feedback = $default_destination_concurrency_positive_feedback
local_destination_rate_delay = $default_destination_rate_delay
local_destination_recipient_limit = 1
local_header_rewrite_clients = permit_inet_interfaces
local_initial_destination_concurrency = $initial_destination_concurrency
local_recipient_maps = proxy:unix:passwd.byname $alias_maps
local_transport = local:$myhostname
luser_relay = pcastadmin
mail_name = Postfix
mail_owner = _postfix
mail_release_date = 20080902
mail_spool_directory = /var/mail
mail_version = 2.5.5
mailbox_command =
mailbox_command_maps =
mailbox_delivery_lock = flock, dotlock
mailbox_size_limit = 0
mailbox_transport = dovecot
mailbox_transport_maps =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maps_rbl_domains =
maps_rbl_reject_code = 554
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions =
max_idle = 100s
max_use = 100
maximal_backoff_time = 4000s
maximal_queue_lifetime = 5d
message_reject_characters =
message_size_limit = 10485760
message_strip_characters =
milter_command_timeout = 30s
milter_connect_macros = j {daemon_name} v
milter_connect_timeout = 30s
milter_content_timeout = 300s
milter_data_macros = i
milter_default_action = tempfail
milter_end_of_data_macros = i
milter_end_of_header_macros = i
milter_helo_macros = {tls_version} {cipher} {cipher_bits} {cert_subject} {cert_issuer}
milter_macro_daemon_name = $myhostname
milter_macro_v = $mail_name $mail_version
milter_mail_macros = i {auth_type} {auth_authen} {auth_author} {mail_addr}
milter_protocol = 2
milter_rcpt_macros = i {rcpt_addr}
milter_unknown_command_macros =
mime_boundary_length_limit = 2048
mime_header_checks = $header_checks
mime_nesting_limit = 100
minimal_backoff_time = 300s
multi_recipient_bounce_reject_code = 550
mydestination = $myhostname, localhost.$mydomain, localhost, binghamton.edu, $mydomain
mydomain = binghamton.edu
mydomain_fallback = localhost
myhostname = macosxserver02.binghamton.edu
mynetworks = 127.0.0.0/8,128.226.62.0/26
mynetworks_style = subnet
myorigin = $myhostname
nested_header_checks = $header_checks
newaliases_path = /usr/bin/newaliases
non_fqdn_reject_code = 504
non_smtpd_milters =
notify_classes = resource, software
parent_domain_matches_subdomains = debug_peer_list,fast_flush_domains,mynetworks,permit_mx_backup_networks,qmqpd_a uthorized_clients,relay_domains,smtpd_access_maps
permit_mx_backup_networks =
pickup_service_name = pickup
plaintext_reject_code = 450
prepend_delivered_header = command, file, forward
process_id_directory = pid
propagate_unmatched_extensions = canonical, virtual
proxy_interfaces =
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $sender_bcc_maps $recipient_bcc_maps $smtp_generic_maps $lmtp_generic_maps
proxy_write_maps = $smtp_sasl_auth_cache_name $lmtp_sasl_auth_cache_name
qmgr_clog_warn_time = 300s
qmgr_fudge_factor = 100
qmgr_message_active_limit = 20000
qmgr_message_recipient_limit = 20000
qmgr_message_recipient_minimum = 10
qmqpd_authorized_clients =
qmqpd_client_port_logging = no
qmqpd_error_delay = 1s
qmqpd_timeout = 300s
queue_directory = /private/var/spool/postfix
queue_file_attribute_count_limit = 100
queue_minfree = 0
queue_run_delay = 300s
queue_service_name = qmgr
rbl_reply_maps =
readme_directory = /usr/share/doc/postfix
receive_override_options =
recipient_bcc_maps =
recipient_canonical_classes = envelope_recipient, header_recipient
reject_code = 554
relay_clientcerts =
relay_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
relay_destination_concurrency_limit = $default_destination_concurrency_limit
relay_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
relay_destination_concurrency_positive_feedback = $default_destination_concurrency_positive_feedback
relay_destination_rate_delay = $default_destination_rate_delay
relay_destination_recipient_limit = $default_destination_recipient_limit
relay_domains = $mydestination
relay_domains_reject_code = 554
relay_initial_destination_concurrency = $initial_destination_concurrency
relay_recipient_maps =
relay_transport = relay
relayhost =
relocated_maps =
remote_header_rewrite_domain =
resolve_null_domain = no
resolve_numeric_domain = no
rewrite_service_name = rewrite
sample_directory = /usr/share/doc/postfix/examples
send_cyrus_sasl_authzid = no
sender_bcc_maps =
sender_canonical_classes = envelope_sender, header_sender
sender_canonical_maps =
sender_dependent_relayhost_maps =
sendmail_path = /usr/sbin/sendmail
service_throttle_time = 60s
setgid_group = _postdrop
showq_service_name = showq
smtp_bind_address6 =
smtp_body_checks =
smtp_cname_overrides_servername = no
smtp_connect_timeout = 30s
smtp_connection_cache_destinations =
smtp_connection_cache_on_demand = yes
smtp_connection_cache_time_limit = 2s
smtp_connection_reuse_time_limit = 300s
smtp_data_done_timeout = 600s
smtp_data_init_timeout = 120s
smtp_data_xfer_timeout = 180s
smtp_defer_if_no_mx_address_found = no
smtp_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
smtp_destination_concurrency_limit = $default_destination_concurrency_limit
smtp_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
smtp_destination_concurrency_positive_feedback = $default_destination_concurrency_positive_feedback
smtp_destination_rate_delay = $default_destination_rate_delay
smtp_destination_recipient_limit = $default_destination_recipient_limit
smtp_discard_ehlo_keyword_address_maps =
smtp_discard_ehlo_keywords =
smtp_enforce_tls = no
smtp_fallback_relay = $fallback_relay
smtp_generic_maps =
smtp_header_checks =
smtp_helo_name = $myhostname
smtp_helo_timeout = 300s
smtp_host_lookup = dns
smtp_initial_destination_concurrency = $initial_destination_concurrency
smtp_line_length_limit = 990
smtp_mail_timeout = 300s
smtp_mime_header_checks =
smtp_mx_address_limit = 5
smtp_mx_session_limit = 2
smtp_nested_header_checks =
smtp_pix_workaround_delay_time = 10s
smtp_pix_workaround_maps =
smtp_pix_workaround_threshold_time = 500s
smtp_pix_workarounds = disable_esmtp,delay_dotcrlf
smtp_quit_timeout = 300s
smtp_quote_rfc821_envelope = yes
smtp_rcpt_timeout = 300s
smtp_rset_timeout = 20s
smtp_sasl_auth_cache_name =
smtp_sasl_auth_cache_time = 90d
smtp_sasl_auth_soft_bounce = yes
smtp_sasl_mechanism_filter =
smtp_sasl_password_maps =
smtp_sasl_path =
smtp_sasl_security_options = noplaintext, noanonymous
smtp_sasl_tls_security_options = $smtp_sasl_security_options
smtp_sasl_tls_verified_security_options = $smtp_sasl_tls_security_options
smtp_sasl_type = cyrus
smtp_send_xforward_command = no
smtp_sender_dependent_authentication = no
smtp_starttls_timeout = 300s
smtp_tls_CAfile =
smtp_tls_CApath =
smtp_tls_cert_file =
smtp_tls_dcert_file =
smtp_tls_dkey_file = $smtp_tls_dcert_file
smtp_tls_enforce_peername = yes
smtp_tls_exclude_ciphers =
smtp_tls_fingerprint_cert_match =
smtp_tls_fingerprint_digest = md5
smtp_tls_key_file = $smtp_tls_cert_file
smtp_tls_loglevel = 0
smtp_tls_mandatory_ciphers = medium
smtp_tls_mandatory_exclude_ciphers =
smtp_tls_mandatory_protocols = SSLv3, TLSv1
smtp_tls_note_starttls_offer = no
smtp_tls_per_site =
smtp_tls_policy_maps =
smtp_tls_scert_verifydepth = 9
smtp_tls_secure_cert_match = nexthop, dot-nexthop
smtp_tls_security_level =
smtp_tls_session_cache_database =
smtp_tls_session_cache_timeout = 3600s
smtp_tls_verify_cert_match = hostname
smtp_use_tls = no
smtp_xforward_timeout = 300s
smtpd_authorized_verp_clients = $authorized_verp_clients
smtpd_authorized_xclient_hosts =
smtpd_authorized_xforward_hosts =
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_connection_count_limit = 50
smtpd_client_connection_rate_limit = 0
smtpd_client_event_limit_exceptions = ${smtpd_client_connection_limit_exceptions:$mynetworks}
smtpd_client_message_rate_limit = 0
smtpd_client_new_tls_session_rate_limit = 0
smtpd_client_port_logging = no
smtpd_client_recipient_rate_limit = 0
smtpd_client_restrictions =
smtpd_data_restrictions =
smtpd_delay_open_until_valid_rcpt = yes
smtpd_discard_ehlo_keyword_address_maps =
smtpd_discard_ehlo_keywords =
smtpd_end_of_data_restrictions =
smtpd_enforce_tls = no
smtpd_error_sleep_time = 1s
smtpd_etrn_restrictions =
smtpd_expansion_filter = \t\40!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghi jklmnopqrstuvwxyz{|}~
smtpd_forbidden_commands = CONNECT GET POST
smtpd_hard_error_limit = 20
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_history_flush_threshold = 100
smtpd_junk_command_limit = 100
smtpd_milters =
smtpd_noop_commands =
smtpd_null_access_lookup_key =
smtpd_peername_lookup = yes
smtpd_policy_service_max_idle = 300s
smtpd_policy_service_max_ttl = 1000s
smtpd_policy_service_timeout = 100s
smtpd_proxy_ehlo = $myhostname
smtpd_proxy_filter =
smtpd_proxy_timeout = 100s
smtpd_pw_server_security_options = login,plain
smtpd_recipient_limit = 1000
smtpd_recipient_overshoot_limit = 1000
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination permit
smtpd_reject_unlisted_recipient = yes
smtpd_reject_unlisted_sender = no
smtpd_restriction_classes =
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = no
smtpd_sasl_exceptions_networks =
smtpd_sasl_path = smtpd
smtpd_sasl_security_options = noanonymous
smtpd_sasl_tls_security_options = $smtpd_sasl_security_options
smtpd_sasl_type = cyrus
smtpd_sender_login_maps =
smtpd_sender_restrictions =
smtpd_soft_error_limit = 10
smtpd_starttls_timeout = 300s
smtpd_timeout = 300s
smtpd_tls_CAfile = /etc/certificates/*.binghamton.edu.1C15A00CCD190A0295A8587B951BA187BFD560ED.cha in.pem
smtpd_tls_CApath =
smtpd_tls_always_issue_session_ids = yes
smtpd_tls_ask_ccert = no
smtpd_tls_auth_only = no
smtpd_tls_ccert_verifydepth = 9
smtpd_tls_cert_file = /etc/certificates/*.binghamton.edu.1C15A00CCD190A0295A8587B951BA187BFD560ED.cer t.pem
smtpd_tls_dcert_file =
smtpd_tls_dh1024_param_file =
smtpd_tls_dh512_param_file =
smtpd_tls_dkey_file = $smtpd_tls_dcert_file
smtpd_tls_exclude_ciphers =
smtpd_tls_fingerprint_digest = md5
smtpd_tls_key_file = /etc/certificates/*.binghamton.edu.1C15A00CCD190A0295A8587B951BA187BFD560ED.key .pem
smtpd_tls_loglevel = 0
smtpd_tls_mandatory_ciphers = medium
smtpd_tls_mandatory_exclude_ciphers =
smtpd_tls_mandatory_protocols = SSLv3, TLSv1
smtpd_tls_received_header = no
smtpd_tls_req_ccert = no
smtpd_tls_security_level =
smtpd_tls_session_cache_database =
smtpd_tls_session_cache_timeout = 3600s
smtpd_tls_wrappermode = no
smtpd_use_pw_server = yes
smtpd_use_tls = no
stale_lock_time = 500s
stress =
strict_mailbox_ownership = yes
syslog_facility = mail
syslog_name = postfix
tls_daemon_random_bytes = 32
tls_export_cipherlist = ALL:+RC4:@STRENGTH
tls_high_cipherlist = ALL:!EXPORT:!LOW:!MEDIUM:+RC4:@STRENGTH
tls_low_cipherlist = ALL:!EXPORT:+RC4:@STRENGTH
tls_medium_cipherlist = ALL:!EXPORT:!LOW:+RC4:@STRENGTH
tls_null_cipherlist = eNULL:!aNULL
tls_random_bytes = 32
tls_random_exchange_name = ${data_directory}/prng_exch
tls_random_prng_update_period = 3600s
tls_random_reseed_period = 3600s
tls_random_source = dev:/dev/urandom
trace_service_name = trace
transport_maps =
transport_retry_time = 60s
trigger_timeout = 10s
undisclosed_recipients_header = To: undisclosed-recipients:;
unknown_address_reject_code = 450
unknown_client_reject_code = 450
unknown_hostname_reject_code = 450
unknown_local_recipient_reject_code = 550
unknown_relay_recipient_reject_code = 550
unknown_virtual_alias_reject_code = 550
unknown_virtual_mailbox_reject_code = 550
unverified_recipient_reject_code = 450
unverified_sender_reject_code = 450
use_getpwnam_ext = yes
use_od_delivery_path = no
verp_delimiter_filter = -=+
virtual_alias_domains = $virtual_alias_maps
virtual_alias_expansion_limit = 1000
virtual_alias_maps =
virtual_alias_recursion_limit = 1000
virtual_destination_concurrency_failed_cohort_limit = $default_destination_concurrency_failed_cohort_limit
virtual_destination_concurrency_limit = $default_destination_concurrency_limit
virtual_destination_concurrency_negative_feedback = $default_destination_concurrency_negative_feedback
virtual_destination_concurrency_positive_feedback = $default_destination_concurrency_positive_feedback
virtual_destination_rate_delay = $default_destination_rate_delay
virtual_destination_recipient_limit = $default_destination_recipient_limit
virtual_gid_maps =
virtual_initial_destination_concurrency = $initial_destination_concurrency
virtual_mailbox_base =
virtual_mailbox_domains = $virtual_mailbox_maps
virtual_mailbox_limit = 51200000
virtual_mailbox_lock = fcntl, dotlock
virtual_mailbox_maps =
virtual_minimum_uid = 100
virtual_transport = virtual
virtual_uid_maps =
macosxserver02:~ academic$
Could someone please help me figure out what is wrong?
Cheryl Tarbox
Macintosh Support Specialist
Binghamton University
[email protected]I found two things that were causing my troubles.
First, port 25 on the switch going to the server was blocked. After this was opened I was able to receive mail to macosxserver02.binghamton.edu. Since this mail server is only used for Podcast Producer notifications, I'm hoping to have this port closed back down after I get Pcast Producer back up and running and fully tested.
Second, when the upgrade from 10.5 -> 10.6 was performed, in ServerAdmin>Mail>Settings>Domain Name, only the .binghamton.edu was populated in this field, not the full domain name of macosxserver02.binghamton.edu. This was preventing me sending mail to our Google branded .binghamton.edu email addresses. Apparently 10.6 was looking locally for all the .binghamton.edu email addresses.
A big thank you to Gordon for looking into this and helping me get this resolved.
Cheryl -
How may I automatically stop and start Mail services at a set time please
Hi folks. I was wondering if anyone could tell me how to automatically stop and start Mail services (or any other services) at a set time please in Leopard Server? Is there a script someone has created which might help?
Cheers, David ( a realy newbie when it comes to administering OS X server)launchd works through a series of XML documents that define tasks to run, either at launch, on a time schedule, in response to network events, etc.
So you'll need to create two .plists - one to start the mail server and one to stop it. They should be saved in /Library/LaunchDaemons. I'd suggest something like:
/Library/LaunchDaemons/local.postfix.stop.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.postfix.stop</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/serveradmin</string>
<string>stop</string>
<string>mail</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>1</integer>
<key>Minute</key>
<integer>00</integer>
</dict>
</dict>
</plist>
and /Library/LaunchDaemons/local.postfix.start.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple
.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.postfix.start</string>
<key>ProgramArguments</key>
<array>
<string>/usr/sbin/serveradmin</string>
<string>start</string>
<string>mail</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>4</integer>
<key>Minute</key>
<integer>00</integer>
</dict>
</dict>
</plist>
You'll need to either use launchctl load /Library/LaunchDaemons/local.postfix.stop (or start) to load the tasks, or reboot your server.
I'm curious, though, as to why you want to do this. Mail is typically one of the services that people want to run 24/7 so they don't miss out on any emails (even though SMTP can tolerate this). Why do you want to shut yours down? -
SMTP vs. external mail service
I need to use SMTP on our webserver to send mail via a web form. However, we use an external 3rd party mail service and when the webserver passes the message for a @mydom.tld user to SMTP (Postfix), it gets passed on to dovecot and dumped in a local mailbox on the server (if the user name corresponds i.e. [email protected] => user account 'miles'). If the usernames don't match, _www gets the bounce message in its local mailbox. IMAP and POP are disabled.
DNS MX records point to the external service (with servers at priority 0, 10 and 20).
What I want to happen is for the SMTP server to send the message to the MX servers (the third party service) instead of trying to deliver it itself.
Here's what the SMTP logs say:
Feb 27 13:55:08 obelix postfix/pickup[52526]: E077C5FD068A: uid=70 from=<_www>
Feb 27 13:55:08 obelix postfix/cleanup[52547]: E077C5FD068A: message-id=<[email protected]>
Feb 27 13:55:08 obelix postfix/qmgr[52527]: E077C5FD068A: from=<[email protected]>, size=581, nrcpt=1 (queue active)
Feb 27 13:55:08 obelix postfix/local[52549]: error: od[getpwnam_ext]: No record for user saskatoon
Feb 27 13:55:08 obelix postfix/pipe[52550]: E077C5FD068A: to=<[email protected]>, relay=dovecot, delay=0.04, delays=0.02/0.01/0/0.02, dsn=5.1.1, status=bounced (user unknown)
Feb 27 13:55:08 obelix postfix/cleanup[52547]: E87B85FD068C: message-id=<[email protected]>
Feb 27 13:55:08 obelix postfix/bounce[52552]: E077C5FD068A: sender non-delivery notification: E87B85FD068C
Feb 27 13:55:08 obelix postfix/qmgr[52527]: E87B85FD068C: from=<>, size=2252, nrcpt=1 (queue active)
Feb 27 13:55:08 obelix postfix/qmgr[52527]: E077C5FD068A: removed
Feb 27 13:55:08 obelix postfix/local[52549]: od[getpwnam_ext]: no attribute dsAttrTypeStandard:MailAttribute in record for user _www
Feb 27 13:55:08 obelix postfix/pipe[52550]: E87B85FD068C: to=<[email protected]>, relay=dovecot, delay=0.01, delays=0/0/0/0.01, dsn=2.0.0, status=sent (delivered via dovecot service)
Feb 27 13:55:08 obelix postfix/qmgr[52527]: E87B85FD068C: removed
From postconf -n:
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
enable_server_options = yes
header_checks = pcre:/etc/postfix/custom_header_checks
html_directory = /usr/share/doc/postfix/html
inet_interfaces = all
mail_owner = _postfix
mailbox_size_limit = 0
mailbox_transport = dovecot
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
maps_rbl_domains =
message_size_limit = 10485760
mydestination = $myhostname, localhost.$mydomain, localhost, mydom.tld, $mydomain
mydomain = obelix.mydom.tld
mydomain_fallback = localhost
myhostname = obelix.mydom.tld
mynetworks = 127.0.0.0/8,10.198.186.90
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
recipient_delimiter = +
relayhost =
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtp_sasl_password_maps =
smtpd_client_restrictions = permit_mynetworks permit_sasl_authenticated permit
smtpd_enforce_tls = no
smtpd_helo_required = yes
smtpd_helo_restrictions = reject_invalid_helo_hostname reject_non_fqdn_helo_hostname
smtpd_pw_server_security_options = cram-md5
smtpd_recipient_restrictions = permit_sasl_authenticated permit_mynetworks reject_unauth_destination check_policy_service unix:private/policy permit
smtpd_sasl_auth_enable = yes
smtpd_tls_CAfile = /etc/certificates/*.mydom.tld.XXXXXXXXX.chain.pem
smtpd_tls_cert_file = /etc/certificates/*.mydom.tld.XXXXXXXXX.cert.pem
smtpd_tls_exclude_ciphers = SSLv2, aNULL, ADH, eNULL
smtpd_tls_key_file = /etc/certificates/*.mydom.tld.XXXXXXXXX.key.pem
smtpd_use_pw_server = yes
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
virtual_alias_maps =
Any and all help appreciated.
Thanks,
MilesWell, the big question is whether or not this server should accept mail for your domain, mydom.tld.
If it should, then this is appropriate - it sees a message for a domain that it's responsible for.
If, on the other hand, this server isn't responsible for your domain's mail then tell it so.
Right now you've told it that it SHOULD accept mail for mydom.tld:
mydestination = $myhostname, localhost.$mydomain, localhost, mydom.tld, $mydomain
So any mail addressed to any user @mydom.tld is going to get delivered locally. If that's not what you want, remove mydom.tld from mydestination and the message will follow the normal SMTP/MX rules. -
How to configure mail service in DRM 11.1.2.3.500
How to configure mail service in DRM 11.1.2.3.500.
There is a feature in Workflow Models to Notify users by sending mail.
Can anyone help me find from where to configure mail service.Hi,
If you open up the Configuration Console on the DRM Server you should be able to navigate to the second tab called "Host Machines".
From there, select SMTP Server - and enter the details for your SMTP server. You've now configured DRM to send emails... now you just need to add it into your workflows... -
I'm trying to set up a leopard home server and have rebuilt it several times now trying toiget the mail service to work correctly.
I will no doubt omit lots of necessary information but please bear with me
I have a registered domain and a static ip. My ISP supplies a broadband modem which just acts as a bridge to my own wireless router. I have done what I understand to be the required port forwarding - 21, 25, 80 & 110.
I have DNS at the ISP but have also set up DNS internally since I couldn't get anything to work without it!
Whilst I can send mail from the server my users can only send to the outside & receive no mail from inside or out.
The SMTP since the last restart:-
Feb 24 17:56:19 merlin postfix/master[37]: daemon started -- version 2.4.3, configuration /etc/postfix
Feb 24 18:08:53 merlin postfix/smtpd[282]: connect from demokritos5.cytanet.com.cy[195.14.130.179]
Feb 24 18:08:54 merlin postfix/smtpd[282]: NOQUEUE: reject: RCPT from demokritos5.cytanet.com.cy[195.14.130.179]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<demokritos5.cytanet.com.cy>
Feb 24 18:08:54 merlin postfix/smtpd[282]: disconnect from demokritos5.cytanet.com.cy[195.14.130.179]
Feb 24 18:12:14 merlin postfix/anvil[284]: statistics: max connection rate 1/60s for (smtp:195.14.130.179) at Feb 24 18:08:53
Feb 24 18:12:14 merlin postfix/anvil[284]: statistics: max connection count 1 for (smtp:195.14.130.179) at Feb 24 18:08:53
Feb 24 18:12:14 merlin postfix/anvil[284]: statistics: max cache size 1 at Feb 24 18:08:53
Feb 24 18:12:16 merlin postfix/smtpd[317]: connect from demokritos3.cytanet.com.cy[195.14.130.227]
Feb 24 18:12:16 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from demokritos3.cytanet.com.cy[195.14.130.227]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<demokritos3.cytanet.com.cy>
Feb 24 18:12:16 merlin postfix/smtpd[317]: disconnect from demokritos3.cytanet.com.cy[195.14.130.227]
Feb 24 18:12:46 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
Feb 24 18:12:46 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from unknown[213.149.189.165]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.1.4]>
Feb 24 18:12:47 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
Feb 24 18:12:58 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
Feb 24 18:12:59 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from unknown[213.149.189.165]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.1.4]>
Feb 24 18:12:59 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
Feb 24 18:13:28 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
Feb 24 18:13:29 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from unknown[213.149.189.165]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.1.4]>
Feb 24 18:13:29 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
Feb 24 18:14:09 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
Feb 24 18:14:09 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from unknown[213.149.189.165]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.1.4]>
Feb 24 18:14:09 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
Feb 24 18:14:20 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
Feb 24 18:14:20 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
Feb 24 18:15:50 merlin postfix/smtpd[317]: connect from unknown[213.149.189.165]
Feb 24 18:15:50 merlin postfix/smtpd[317]: NOQUEUE: reject: RCPT from unknown[213.149.189.165]: 554 5.7.1 <[email protected]>: Relay access denied; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<[192.168.1.4]>
Feb 24 18:15:50 merlin postfix/smtpd[317]: disconnect from unknown[213.149.189.165]
Feb 24 18:19:10 merlin postfix/anvil[318]: statistics: max connection rate 3/60s for (smtp:213.149.189.165) at Feb 24 18:13:28
Feb 24 18:19:10 merlin postfix/anvil[318]: statistics: max connection count 1 for (smtp:195.14.130.227) at Feb 24 18:12:16
Feb 24 18:19:10 merlin postfix/anvil[318]: statistics: max cache size 2 at Feb 24 18:12:46
Feb 24 18:20:09 merlin postfix/smtpd[376]: connect from merlin.2ndwivesclub.eu[192.168.1.2]
Feb 24 18:20:09 merlin postfix/smtpd[376]: 4D4ED8123E: client=merlin.2ndwivesclub.eu[192.168.1.2]
Feb 24 18:20:09 merlin postfix/cleanup[378]: 4D4ED8123E: message-id=<[email protected]>
Feb 24 18:20:09 merlin postfix/qmgr[100]: 4D4ED8123E: from=<[email protected]>, size=583, nrcpt=1 (queue active)
Feb 24 18:20:15 merlin postfix/smtpd[385]: connect from localhost[127.0.0.1]
Feb 24 18:20:15 merlin postfix/smtpd[385]: B202081265: client=localhost[127.0.0.1]
Feb 24 18:20:15 merlin postfix/cleanup[378]: B202081265: message-id=<[email protected]>
Feb 24 18:20:15 merlin postfix/qmgr[100]: B202081265: from=<[email protected]>, size=1037, nrcpt=1 (queue active)
Feb 24 18:20:15 merlin postfix/smtpd[385]: disconnect from localhost[127.0.0.1]
Feb 24 18:20:15 merlin postfix/smtp[386]: B202081265: to=<[email protected]>, relay=none, delay=0.05, delays=0.02/0.03/0/0, dsn=5.4.6, status=bounced (mail for 2ndwivesclub.eu loops back to myself)
Feb 24 18:20:15 merlin postfix/cleanup[378]: CBEAD81267: message-id=<[email protected]>
Feb 24 18:20:15 merlin postfix/qmgr[100]: CBEAD81267: from=, size=2928, nrcpt=1 (queue active)
Feb 24 18:20:15 merlin postfix/bounce[387]: B202081265: sender non-delivery notification: CBEAD81267
Feb 24 18:20:15 merlin postfix/qmgr[100]: B202081265: removed
Feb 24 18:20:15 merlin postfix/smtp[386]: CBEAD81267: to=<[email protected]>, relay=none, delay=0.02, delays=0.01/0/0/0, dsn=5.4.6, status=bounced (mail for 2ndwivesclub.eu loops back to myself)
Feb 24 18:20:15 merlin postfix/qmgr[100]: CBEAD81267: removed
Feb 24 18:20:15 merlin postfix/smtp[379]: 4D4ED8123E: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, delay=6.7, delays=0.2/0.13/0.4/6, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as B202081265)
Feb 24 18:20:15 merlin postfix/qmgr[100]: 4D4ED8123E: removed
Feb 24 18:21:09 merlin postfix/smtpd[376]: disconnect from merlin.2ndwivesclub.eu[192.168.1.2]
And conf:-
merlin:~ alf$ postconf -n
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[127.0.0.1]:10024
daemon_directory = /usr/libexec/postfix
debugpeerlevel = 2
enableserveroptions = yes
html_directory = no
inet_interfaces = all
localrecipientmaps =
luser_relay = postmaster
mail_owner = _postfix
mailboxsizelimit = 0
mailbox_transport = cyrus
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
messagesizelimit = 10485760
mydestination = $myhostname,localhost.$mydomain,localhost
mydomain = 2ndwivesclub.eu
mydomain_fallback = localhost
myhostname = mail.2ndwivesclub.eu
newaliases_path = /usr/bin/newaliases
queue_directory = /private/var/spool/postfix
readme_directory = /usr/share/doc/postfix
relayhost =
sample_directory = /usr/share/doc/postfix/examples
sendmail_path = /usr/sbin/sendmail
setgid_group = _postdrop
smtpdpw_server_securityoptions = none
smtpdrecipientrestrictions = permitmynetworks,reject_unauthdestination,permit
smtpduse_pwserver = no
unknownlocal_recipient_rejectcode = 550
merlin:~ alf$
And a rejection notice.
Some help would be really appreciated.
Cheers.
JohnAdd 2ndwivesclub.eu to local host aliases in Server Admin -> Mail -> Settings -> Advanced -> Hosting
-
Mail service rejecting all external mail
I am running Snow Leopard Server 10.6.2 and when I began setting up the mail services I was able to get internal mail working just fine, however, any messages sent from external sources are rejected. The sender receives a permanent delivery failure message: The error that the other server returned was: 550 550 5.1.1 <emailaddress>: Recipient address rejected: undeliverable address: User unknown (state 14). I should note that I am using DynDNS's Mailhop Relay service, but that appears to be working normally as I can see the connections from the mailhop servers in my SMTP log.
I have tried disabling greylisting as posted in other threads to no effect. I have disabled filtering of any kind, still to no effect. At this point, I'm not sure what else to try, as at this point I'm in a little over my head.
Any assistance would be most appreciated, thanks.I finally figured it out. My SMTP security settings were being mis-reported by Server Admin. The server was requiring authentication from approved mail servers when it wasn't supposed to.
-
Hi,
i configured the SMTP for mail service.
I can able to send mail to our domain ( for ex: abc.com ) - default domain
i gave SMTP Connection as : mail.abc.com
the above scenario --- will work for me if i send mail to our default domain. but i am not able to send to yahoo, gmail.
Please help me ...
--- LeeHi Lee,
In the SCOT, SMTP node you need to have the SMTP server address. if you've given the sap server IP address, then revert it back.
What Juan has already mentioned,
"you need to make sure that the IP address of the SAP System is populated on the SMTP relay agent for the mails to leave the domain." that means you've to tell your SMTP mail admin guys to add the SAP server IP address in the relay agent.
Regards,
Debasis. -
Set up Mail service for SMTP only.
I wish to set up the Mail service to act as an smtp server only.
I have FileMaker Server running on this server, on which I am using a plug-in to send mail to my ISP's smtp server. But I am outgrowing my daily sending limits through my ISP (100/day), and would like to run my own smtp server instead.
I have turned on the smtp mail service and it is running, but I'm not sure what credentials I should use to authenticate when connecting to this smtp server...I have turned on the smtp mail service and it is running, but I'm not sure what credentials I should use to authenticate when connecting to this smtp server...
Why use any?
If the Filemaker Server is inside your network and this server is just acting as a relay for outgoing mail then you don't need authentication at all. Just tell postfix to trust local networks ("Relay mail from the following networks" in Server Admin and add your internal addresses) and you're set.
Since the server won't be accepting mail from outside clients or servers that's all you need to do. There's no need to authenticate since the connection is coming from a trusted network.
If you still do want to use authentication then just provide any username/password combo that is valid for this server. You could even create a dummy account just for this purpose if you prefer. -
I don't get the Mail service to work - tried everything!
Hey there,
I am frustrated. It's day 4 that I try to get the mail service on my machine running. Maybe someone has sme hints?
The setup:
- Mac Mini mid 2010
- OS X Mavericks and Server 3.0.1
- static IP (no Firewall or anything else, absolute in the wild)
- registered domain-name
- DNS A-Record: server.mydomain.org -> static IP
- DNS MX-Record: domain, *.domain -> server.mydomain.org; server.mydomain.org -> static IP of server
Server Configuration:
- Server.app shows everything is fine.
- ssh enabled for one user (works as a charme)
- Service-Data is on another partition than Mavericks
- Certificate: self-signed intermediate OD-Certificate (might be problematic?)
- users: one local user and one network-user (services-only)
- groups: workgroup, local network-group (added by the server.app itself)
Services:
- Websites: configured with 12 virtual-hosts some ssl (intermediate certificate) some on port 80, php enabled (All websites work perfect, no problems at all!)
- OpenDirectory: 1 Master on server.mydomain.org
- Mail:
-- Service-Bubble is green, says available under server.mydomain.org
-- Preferences: Mail available for mydomain.org (no other virtual domains)
-- authentification: hooked everything...(any method)
-- no relais
-- no MB-restriction for users
-- Filter: Virus and Junk
I can telnet on port 110 - feedback: dovecot ready!
I can telnet on port 995 - feedback: works... escape characeter is ' ^'.
I can telnet on port 143 - feedback: dovecot ready!
I can telnet on port 993 - feedback: works... escape characeter is ' ^'.
telnet on port 25 - unable to connect, operation timed out
telnet on port 465 - unable to connect, operation timed out
telnet on port 587 - -feedback works: 220 server.pscience.de ESMTP Postfix
Seems like having problem on the smtp standard ports... but why?
When I now try to connect a client with the server (adding an OS X server Account in the System Preferences) it recognizes the server and lists its services as expected. But when Iopen Mail, the new account shows the litlle lightning and says it can't connect.
By the way: Notes, Calendar, Reminders work fine!
Has anyone an Idea what it could be?
Do I need some additional DNS-stuff?
If you need some further informations, please let me know.If TCP port 25 isn't open, then SMTP services won't work. That's the port that all SMTP servers use to communicate amongst themselves. (Sure, you can change the port your SMTP server is listening on, but you'd also have to change the port processing on all of the other SMTP servers around — and if you did manage to implement that change everywhere, the local network folks would likely just block the new port for the same reasons they blocked the old port.)
If you have a public static IP address and have correct forward and reverse translations — host domain to IP address, and IP address to host domain name — then you don't need and very likely don't want to run your own DNS server.
More to help you learn how these pieces fit together and not something I'd expect you would need given you have a public static IP and public DNS here is a detailed DNS server configuration article for OS X Server; enable Show All Records and it applies to Server.app on 10.7 and later. If you have questions after reading that, I can certainly answer them and also update the article to try to reduce the confusion or answer the question.
Your host didn't have valid reverse DNS, so you'll want to get that cleared up, and you'll want to get the port blocks cleared, or work with the local network folks to set up a relay through one of the existing mail servers.
Maybe you are looking for
-
I have a problem with my iPhone 4s. Location Services is turned on, but off in applications and I can not change it. It's just marked in gray. What should I do?
-
How do I get my apps onto a new replacement phone?
how do I get my apps onto a new replacement phone?
-
V$session and v$session_longops
Hi, in 10gR2, why SID in v$session_longops does not existe in v$session : SQL> select SID from v$session_longops group by SID; SID 137 SQL> select SID from v$session where SID='137'; No row selected. Any explanation. Many thanks.
-
Re:Profit center as mandatory for VA01
Hi Experts, Good Morning, my issue is if i didnt give profit center in va01 the document should not be saved, so in OMS9 which field sel.group (eg:name-0001,0002.....) i need to go and maintain as "Reqd Entry" Thanks in advance & points will be assig
-
PROJ-ERDAT does not exist as selection field
Hi, Created on is not part of the field selection for Project Systems reports. The field ERDAT does not exist in structure PROJR therefor running program RCNCT000 to generate the selection fields does not add the field to the selection. How do I add