Change server mail from postfix to sendmail virtualmin

Hi I have already install an ubuntu server with postfix and sendmail mail servers.Although postfix runs perfectly when I go to Virtualmin panel>Virtual Configuration>And choose sendmail mail server to configure >save and rebuild configuration file I get this : The Read User Mail module is not setup to use the Sendmail mail server. Either adjust its module configuration to match, or change the Virtualmin configuration. I do not know what to do.Any suggestion?

How to add custom checkout field in user details mail template

I need to add custom field from my checkout page to email templates. I already added custom input at checkout page and it shows up in mails but it shows up after products table and I would like it to show up in customer details. I can’t find right hook to place it there. Code for my custom field:

// Hook in add_filter('woocommerce_checkout_fields', 'custom_override_checkout_fields');  // Our hooked in function - $  fields is passed via the filter! function custom_override_checkout_fields($  fields) {    //New input   $  fields['billing']['OIB'] = array(     'label'     => __('OIB', 'woocommerce'),     'placeholder'   => _x('OIB', 'placeholder', 'woocommerce'),     'required'  => true,     'class'     => array('form-row-wide'),     'clear'     => true   );    return $  fields; }  /**  * Update the order meta with field value  */ add_action('woocommerce_checkout_update_order_meta', 'my_custom_checkout_field_update_order_meta');  function my_custom_checkout_field_update_order_meta($  order_id) {   if (!empty($  _POST['OIB'])) {     update_post_meta($  order_id, 'OIB', sanitize_text_field($  _POST['OIB']));   } }   /**  * Display field value on the order edit page  */ add_action('woocommerce_admin_order_data_after_billing_address', 'my_custom_checkout_field_display_admin_order_meta', 10, 1);  function my_custom_checkout_field_display_admin_order_meta($  order) {   echo '<p><strong>' . __('OIB') . ':</strong> ' . get_post_meta($  order->id, 'OIB', true) . '</p>'; }   /* To use:  1. Add this snippet to your theme's functions.php file 2. Change the meta key names in the snippet 3. Create a custom field in the order post - e.g. key = "OIB" value = 134852145798 4. When next updating the status, or during any other event which emails the user, they will see this field in their email */ add_filter('woocommerce_email_order_meta_keys', 'my_custom_order_meta_keys');  function my_custom_order_meta_keys($  keys) {   $  keys[] = 'OIB'; // This will look for a custom field called 'OIB' and add it to emails   return $  keys; }  //Micanje Checkout polja add_filter('woocommerce_billing_fields', 'bbloomer_move_checkout_email_field', 10, 1);  function bbloomer_move_checkout_email_field($  address_fields) {   $  address_fields['billing_email']['priority'] = 25;   $  address_fields['OIB']['priority'] = 26;   $  address_fields['billing_phone']['priority'] = 27;   $  address_fields['billing_country']['priority'] = 28;   return $  address_fields; }  // Custom validacija za OIB add_action('woocommerce_checkout_process', 'custom_validate_OIB'); function custom_validate_OIB() {   $  is_correct = preg_match('/^[0-9]{11}$  /', $  _POST['OIB']);   if ($  _POST['OIB'] && !$  is_correct) {     wc_add_notice(__('OIB se sastoji od <strong>11 brojki</strong>.'), 'error');   } } 

I use NP Quote Request plugin which has it’s own email templates. I think that one of these hooks at the bottom of email template php file controls customer details.

do_action('woocommerce_email_after_order_table', $  order, $  sent_to_admin, $  plain_text);  do_action('woocommerce_email_order_meta', $  order, $  sent_to_admin, $  plain_text);  do_action('woocommerce_email_confirmation_messages', $  order, $  sent_to_admin, $  plain_text);  do_action('woocommerce_email_customer_details', $  order, $  sent_to_admin, $  plain_text, $  email);   try {     do_action('woocommerce_email_footer'); } catch (Exception $  ex) { } 

Any help on which hook I should target or what I should do would be great. Thanks.

How to get a new mail alert notification popup for Postfix localhost mail in Ubuntu MATE 19.04

I have configured Postfix along with Mailutils to send and receive mails from localhost in Ubuntu MATE 19.04. I can read mails through terminal just fine.

Now how do I get new mail alert notification popups in system tray for incoming mails? Like upon a system boot and whenever new mail arrives afterwards. I’d like the notifications to stay there until dismissed. Many thanks.

Note: Just to be extra clear this setup is for “local only” mails.

Postfix version: 3.3.2-4 Mailutils version: 1:3.5-2build1 

How to get a new mail alert notification popup for Postfix localhost mail in Ubuntu MATE 19.04

I have configured Postfix along with Mailutils to send and receive mails from localhost in Ubuntu MATE 19.04. I can read mails through terminal just fine.

Now how do I get new mail alert notification popups in system tray for incoming mails? Like upon a system boot and whenever new mail arrives afterwards. I’d like the notifications to stay there until dismissed. Many thanks.

Note: Just to be extra clear this setup is for “local only” mails.

Postfix version: 3.3.2-4 Mailutils version: 1:3.5-2build1 

What prevents malicious servers from spoofing mail transfer agents and/or mail delivery agents?

An email system typically consists of multiple agents:

  • Mail user agent (MUA)
  • Mail submission agent (MSA)
  • Mail tranfer agent (MTA)
  • Mail delivery agent (MDA)

Mail agent netword

Evidently the ‘middlemen’ of this system are a spoofing risk. (Technically the endpoints could also be a spoof risk, but let’s assume in this case that the end users are genuine.)

What methods are used/can be used to protect against these ‘middlemen’ agents being spoofed?

I’ve thought about it myself and the only answer I can come up with is that DNS might provide some sort of limited authentication, though DNS spoofing would still be a risk.


(Image is CC BY-SA 3.0, © Ale2006-from-en.)

WP Mail SMTP: What do the SSL/TLS options mean?

When setting up the WPForms WP Mail SMTP plugin, I got this choice:

screenshot

Encryption: ( ) None ( ) SSL ( ) TLS
For most servers TLS is the recommended option. If your SMTP provider offers both SSL and TLS options, we recommend using TLS.

What do those options mean? Do they mean (like in normal conversation):

  • SSL = SSLv3
  • TLS = at least TLS 1.0

or do they mean (like in Outlook and some other mail clients):

  • SSL = TLS
  • TLS = STARTTLS

I was assuming the latter, because that is really common with mail stuff.

But if that is the case, why would the plugin recommend to prefer “TLS” (STARTTLS, which is insecure) to “SSL” (TLS, which is safe)?

How to ver by mail

Hi!
How to verify by mail if link not active link&

[verurlmail]
type=extract
front=:\n
back=\n

verify submission=1
verify by=email
verify url=%verurlmail%
verify interval=20
first verify=10
verify timeout=30
verify on unknown status=1

SharePoint Column Formatting: Referencing External Columns in Mail To Body

Hello Stack Exchange Community,

I have a question regarding referencing external columns. In my code below, external columns are referenced using square brackets as specified in Microsoft’s online documentation.

{   "$  schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",   "elmType": "a",   "txtContent": "@currentField",   "attributes": {     "href": {       "operator": "+",       "operands": [         "mailto:",         "[$  Email]",         "?subject=Task status&body=Follow Up: Agreements.\r\n---\r\n",         "Dear [$  ContactName]",         "\r\nJust writing to follow up on that agreement that has been sent on [$  StartDate]. Let me know if you have any questions."       ]     }   } } 

However, after doing so fields such as $ ContactName and $ StarDate do not appear to be properly displaying their associated values. Instead, what appears on my email body is the literal code used to reference the columns (e.g Just writing to follow up on that agreement that has been sent on [$ StartDate]).

If anyone knows of the proper way to reference values in external columns within the email body using JSON column formatting please do let me know !

Much appreciated !